Oppenhiemer
Programmer
Hi..
I am using the ADO components in Delphi 6 to connect to a MIcrosoft Access 97 table. All is well, until I try filter the records.
The Access table in question has a field called InvNo and is of type "text". I would like to filter those records that have the value "INVOICE" in this field.
Here is the filter I am currently using (being set from code when form loads.)
Filter := 'InvoiceType = ' + AnsiQuotedStr('INVOICE', '"');
I am using the AnsiQuotedStr function, as Access uses the " character instead of the ' character. Delphi does not complain about the format of the filter, but no records are returned (so it dont work basically.)
Does anyone know the correct format for the filter given the type of database I am using ?
Cheers..
Opp.
I am using the ADO components in Delphi 6 to connect to a MIcrosoft Access 97 table. All is well, until I try filter the records.
The Access table in question has a field called InvNo and is of type "text". I would like to filter those records that have the value "INVOICE" in this field.
Here is the filter I am currently using (being set from code when form loads.)
Filter := 'InvoiceType = ' + AnsiQuotedStr('INVOICE', '"');
I am using the AnsiQuotedStr function, as Access uses the " character instead of the ' character. Delphi does not complain about the format of the filter, but no records are returned (so it dont work basically.)
Does anyone know the correct format for the filter given the type of database I am using ?
Cheers..
Opp.