I have a form with customer details such as customer code, address details, tel number etc.
We also use a SQL database as our main system and i'd like my Access database to lookup the address from the SQL table where the customer code are the same.
I've done a search but can't find anything on how to do this.
I don't want to use combo boxes or link the table as there are thousands of record and that would take too long.
I thought maybe a pass through query somehow, but don't don't know how to get it onto the form.
I can create a basic pass through query and pull information into the query, such as
but I get lost when trying to get it to pass a variable into the sql commands so that it can pull out the right customer code.
Anyone got any tips or links to somewhere that can help?
Regards
Griff
We also use a SQL database as our main system and i'd like my Access database to lookup the address from the SQL table where the customer code are the same.
I've done a search but can't find anything on how to do this.
I don't want to use combo boxes or link the table as there are thousands of record and that would take too long.
I thought maybe a pass through query somehow, but don't don't know how to get it onto the form.
I can create a basic pass through query and pull information into the query, such as
Code:
SELECT custname from RM00101 where custname='0123456'
Anyone got any tips or links to somewhere that can help?
Regards
Griff