- Joined
- 18 Oct 2002
- Posts
- 710
- Location
- Somerset
Code:Dim db As Database, rst As Recordset Set db = CurrentDb Set rst = db.OpenRecordset("SELECT * FROM Query_Name WHERE ParameterField = '" & YourFormControlName & "'") me.customer_account_name.value = rst.fieldname etc
In that piece of code i need to change......
Query_name to the name of my query - Done
Parameterfield to ?
YourFormControlName to the name of the combo box?
rst.fieldname to the field name in the query that i want copyed into the txt box.
so much easyer with a couple lookups in excel in my opinion.