Ask a Question related to Microsoft Access, Design and Development.
-
staticxxx #1
dlookup/vllookup with two criteria
Hello,
I've got an access 07 form based on a table like this:
Store 1 2 3 4
1 27 23 54 67
2 43 56 21 78
3 76 65 23 87
4 56 23 87 54
Except the table has hundreds of stores.
The data is the number of kilometers between store's. I would like to enter the two store #'s into two text boxes and a third text box would display the number of KM between stores.
I could do this with excel using vlookup:
=VLOOKUP(A1,'Store to Store Distance'!1:65536,B+4)
store1 sheet range store2
Where this was on a separate sheet linked to a form to enter the two store numbers, a third box returning the value.
I have tried simulating the same effect with access using the dlookup function in the control source of textbox3:
=DLookup ("= & textbox2", "store to store distance", "store=" & textbox1)
But i continue getting errors, any help on this would be appreciated.
Staticxxx
Junior Member
- Join Date
- Mar 2011
- Posts
- 1
-
Assign Dlookup result to text box issues RTE 2471, HELP
Hello, I'd appreciate some help on this problem, thanks. I want to assign the query's return value to a textbox and I'm using DLookup. However... -
dLookup error
I have a form in which I want to automatically fill in the zip code when the town is selected from the combo box. I also need it flexible so towns... -
Dlookup?
In a form: I have two text boxes (txtname, txtcontrollocation). I am trying to have the "txtcontrollocation" populate from a table (Security... -
DLookUp and Dates
I am having a problem with this working and think it might have something with the field being a date field? =DLookUp("","Conventions"," = " & !!... -
DLookup
I want to create a field on a current form that will look up a value in a query. The query has three fields: project#, type, totalhours. I want...



Reply With Quote

