ACC2000: Parameter Query Returns No Records with Replication ID Field (210612)
The information in this article applies to:
This article was previously published under Q210612 This
article applies only to a Microsoft Access database (.mdb).
Moderate: Requires basic macro, coding, and interoperability
skills. For a Microsoft Access 2002 version of this article,
see
291958. SYMPTOMS 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. CAUSE 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). RESOLUTION 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.
- Complete the steps in the "Steps to Reproduce Problem"
section in the "More Information" section.
- Open the Query1 query in Design view.
- On the Query menu, click Parameters, and in the Parameter box, type the following:
- In the Data Type box, enter Text, and then click OK.
- With the Form1 form open and displaying the first record,
run the Query1 query.
STATUSMicrosoft
has confirmed that this is a problem in the Microsoft products that are listed
at the beginning of this article.
REFERENCESFor 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.
Modification Type: | Major | Last Reviewed: | 11/21/2002 |
---|
Keywords: | kbbug KB210612 |
---|
|