ACC2000: Parameter Query Returns No Records with Replication ID FieldID: Q210612
|
When you supply a GUID value as a criteria in a query field that is based on an AutoNumber field that is set to a Replication ID, no fields are returned. You might see this if you reference a form field that contains the Replication ID in the Criteria row of the query.
The Datasheet view of a table/query that contains a field of data type AutoNumber (with its FieldSize property set to ReplicationID) is returning/displaying the ReplicationID as type String, instead of a GUID (Byte array).
You can return the correct records by converting the GUID being supplied as a criteria to a string. The following demonstrates how to use the Parameters dialog box to force a form field reference to be converted to a string in the query criteria.
[Forms]![Form1]![Field1]
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.
The reference to a parameter (for example, a form's control) is returning the actual Byte array (GUID) value of the Replication ID instead of the structured text format of the GUID.
Field Name Data Type Field Size Indexed Field1 AutoNumber Replication ID No Field2 Text 50 No
Field: Field1 Field2 Table: Table1 Table1 Criteria: [Forms]![Form1]![Field1]
For more information about Replication ID AutoNumbers, click Microsoft Access Help on the
Help menu, type "Which type of AutoNumber field should I create?" in the Office Assistant or the Answer Wizard,
and then click Search to view the topic.
Additional query words:
Keywords : kbdta QryParm
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: May 13, 1999