I have no idea what I am doing here, as I have never used SQL with VBA before:
What do I have to do in order to get the name from the query and assign it to the name variable?
Code:
namelookup = "SELECT people.name FROM people WHERE people.name='personID';"
name = DoCmd.OpenQuery "namelookup"
What do I have to do in order to get the name from the query and assign it to the name variable?
