I have an MS-Access database project (.ADP) linked to SQL Server (MSDE). Before migrating to SQL server, I had a Front-end/Back-end setup of this database.
I had a drop-down field to lookup a client_code (row source) from "client" table, and the control source gets stored in a table called "quotes" (quotes_client_code). I used Dlookup to find the customer name from client table, based on the previous quote_client_code selection, which puts the value in an unbound text field. My form's recordsource is set on quotes table.
This method does not work since I have imported my tables into SQL server and link to that data source.
Fairly new to SQL server but I believe it's time to migrate.
The code looks like this in VBA:
Any help appreciated.
Thanks.
All is not as it seems!
I had a drop-down field to lookup a client_code (row source) from "client" table, and the control source gets stored in a table called "quotes" (quotes_client_code). I used Dlookup to find the customer name from client table, based on the previous quote_client_code selection, which puts the value in an unbound text field. My form's recordsource is set on quotes table.
This method does not work since I have imported my tables into SQL server and link to that data source.
Fairly new to SQL server but I believe it's time to migrate.
The code looks like this in VBA:
Code:
Private Sub quote_acc_no_AfterUpdate()
Let client_name = DLookup("[name]", "client","[quote_acc_no]=[client]![account]")
End Sub
Any help appreciated.
Thanks.
All is not as it seems!