Hi,
I have a form that has a ddl which the user can select a name from another table called Vendors. The vendors table has Name, Tel, Address.
On my form I have an area for Vendor (which is the ddl), Name, Tel and Address.
When I select the Vendor from the DDL I am trying to populate the other fields automaticlly using Dlookup.
Two things are happening, first I get an Error "Syntax Error" missing operator and sometimes if it works the record will not save.
Here is a line of the Dlookup code I am using on the "On Change Event" of the ddl.
Me.VendorPhone = DLookup("vPhone", "Vendors", "VendorPhone = '" & Me.VendorPhone & "'")
Any help would be greatly appreciated.
Fen How
I have a form that has a ddl which the user can select a name from another table called Vendors. The vendors table has Name, Tel, Address.
On my form I have an area for Vendor (which is the ddl), Name, Tel and Address.
When I select the Vendor from the DDL I am trying to populate the other fields automaticlly using Dlookup.
Two things are happening, first I get an Error "Syntax Error" missing operator and sometimes if it works the record will not save.
Here is a line of the Dlookup code I am using on the "On Change Event" of the ddl.
Me.VendorPhone = DLookup("vPhone", "Vendors", "VendorPhone = '" & Me.VendorPhone & "'")
Any help would be greatly appreciated.
Fen How