Looking for help on a dlookup expression.
I created a query named "qry idle" that has a list of addresses for various vehicles around the country.
I have another query named "qry Zip Codes" with all the zip codes in the U.S. along with the coordinates for each zip code.
In the "qry idle", I have a field named "Driver Lat". I am trying to write an expression that will look at my combo box "combo ZipCodeSearchBox", which is where I would enter a zip code to search for, then look through the list of all the zip codes in the country and return the lat coordinates for that zip code, which is in the column next to each zip, to "Driver Lat".
As plain as i can explain is....
combo, look through zip code column and return lat coord's from the column next to you and return the coord's to "Driver lat" in the "qry idle".
This what i wrote so far...
combo ZipCodeSearchBox = DLookUp("[zip_code]","qry Zip Codes","[latitude]")
Definition:
1. combo ZipCodeSearchBox is the combo box where I enter a zip code.
2. [Zip_code] is the field.
3. qry Zip Codes is the query.
4. [latitude] is the coords.
Basically this expression is supposed to bring back the coord's from "qry Zip Codes" and place the coord's into "qry idle".
My expression is not working, any help would be great, thanks.
I created a query named "qry idle" that has a list of addresses for various vehicles around the country.
I have another query named "qry Zip Codes" with all the zip codes in the U.S. along with the coordinates for each zip code.
In the "qry idle", I have a field named "Driver Lat". I am trying to write an expression that will look at my combo box "combo ZipCodeSearchBox", which is where I would enter a zip code to search for, then look through the list of all the zip codes in the country and return the lat coordinates for that zip code, which is in the column next to each zip, to "Driver Lat".
As plain as i can explain is....
combo, look through zip code column and return lat coord's from the column next to you and return the coord's to "Driver lat" in the "qry idle".
This what i wrote so far...
combo ZipCodeSearchBox = DLookUp("[zip_code]","qry Zip Codes","[latitude]")
Definition:
1. combo ZipCodeSearchBox is the combo box where I enter a zip code.
2. [Zip_code] is the field.
3. qry Zip Codes is the query.
4. [latitude] is the coords.
Basically this expression is supposed to bring back the coord's from "qry Zip Codes" and place the coord's into "qry idle".
My expression is not working, any help would be great, thanks.