Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I fill in multiple fields?

Status
Not open for further replies.

walkert

IS-IT--Management
Sep 7, 2001
17
0
0
US
I would like to fill in the "City" and "State" fields when I put in the zipcode. I have a table created with the zipcodes in it. (3 fields,zip,city,st.)

How do I make it fill in?
 
dlookup - check the help area Bastien

There are many ways to skin this cat,
but it still tastes like chicken
 
dlookup - check the help area

run the event for this in the afterUpdate function for the zip code field

sub zipCode_AfterUpdate()
dim strCity as string
dim strState as string

strCity = Dlookup(attributes)
strState = DlookUp(attributes)

me.city.value=strCity
me.state.value=strState

End sub

roughly something like that
hth
Bastien

There are many ways to skin this cat,
but it still tastes like chicken
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top