Here is my SQL Expression:
StrCriteria = "SELECT * "
StrCriteria = StrCriteria & "FROM [tbl_CustomerAddress] "
StrCriteria = StrCriteria & "WHERE [tbl_CustomerAddress].[RCustomerID] = "
StrCriteria = StrCriteria & RCustomerID
For some reason I get a Synax Error When I attempt to Execute the DoCmd.Openform Action on a form.
If I debug.print the string and copy it into a querys SQL line, it gives me all of the fields that I need and seems to work fine.
Any ideas?
Thanks,
Chris
StrCriteria = "SELECT * "
StrCriteria = StrCriteria & "FROM [tbl_CustomerAddress] "
StrCriteria = StrCriteria & "WHERE [tbl_CustomerAddress].[RCustomerID] = "
StrCriteria = StrCriteria & RCustomerID
For some reason I get a Synax Error When I attempt to Execute the DoCmd.Openform Action on a form.
If I debug.print the string and copy it into a querys SQL line, it gives me all of the fields that I need and seems to work fine.

Any ideas?
Thanks,
Chris