If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Dlookup in form
Hi all,
I have a field in a form called Suburb and another called Postcode. I have a Qry called PostcodeFinal, with fields, Suburb, Postcode, SubPost(ConCat of Suburb and Postcode) and Major Port How do I write the expression to show the Major Port automatically when the user types in a suburb name? I've tried =DLookUp([From Suburb/City],[QryPostcodeFinal]![SubPost], [QryPostcodeFinal]![Postcode] ) But it gives #Name? Any ideas? thanks A |
#2
|
|||
|
|||
Dlookup in form
=DLookUp("Major Port", "PostcodeFinal", "Suburb='" &
[ControlNameIntoWhichUserTypesSuburbName] & "'") The above assumes that Suburb is a text formatted field. -- - - - - - - - - - - - - - - - - - Ken Snell MS ACCESS MVP "Arry" wrote in message ... Hi all, I have a field in a form called Suburb and another called Postcode. I have a Qry called PostcodeFinal, with fields, Suburb, Postcode, SubPost(ConCat of Suburb and Postcode) and Major Port How do I write the expression to show the Major Port automatically when the user types in a suburb name? I've tried =DLookUp([From Suburb/City],[QryPostcodeFinal]![SubPost], [QryPostcodeFinal]![Postcode] ) But it gives #Name? Any ideas? thanks A |
Thread Tools | |
Display Modes | |
|
|