J
Jean-Paul
Hallo,
I created a form with a selectionlist of all belgian cities.
Next to this field I created an entryfield where the zip-codes should appear
What I want is this entryfield to show the zipcode when the up and
downarrow of the selectionfield is clicked
In the "after update" propertie of the selectionlist I wrote:
Dim db As Database
Dim tb As Recordset
Dim f As Form
Set db = CurrentDb()
Set tb = db.OpenRecordset("postnummers")
Set f = Forms![leerkrachten]
tb.MoveFirst
Do Until tb.EOF
If tb!gte = f!gem_lk Then
f!PN_lk = tb!PN
Exit Do
End If
tb.MoveNext
Loop
tb!gte citiy's name
PN is the zipcode
The zipcode only changes when I put the cursor in the selectionfield and
then move to the next entryfield with the tab button
What do I have to do?
Thank you all
JPentryfield l
I created a form with a selectionlist of all belgian cities.
Next to this field I created an entryfield where the zip-codes should appear
What I want is this entryfield to show the zipcode when the up and
downarrow of the selectionfield is clicked
In the "after update" propertie of the selectionlist I wrote:
Dim db As Database
Dim tb As Recordset
Dim f As Form
Set db = CurrentDb()
Set tb = db.OpenRecordset("postnummers")
Set f = Forms![leerkrachten]
tb.MoveFirst
Do Until tb.EOF
If tb!gte = f!gem_lk Then
f!PN_lk = tb!PN
Exit Do
End If
tb.MoveNext
Loop
tb!gte citiy's name
PN is the zipcode
The zipcode only changes when I put the cursor in the selectionfield and
then move to the next entryfield with the tab button
What do I have to do?
Thank you all
JPentryfield l