E
Elmar
For a contact list I need to get (amongst other things) State,
Locality and Postcode (Australia). I've downloaded the current listing
and modified it to a table tblPcode5col with unique records and 5
columns:
fldP5ID Autonumber Primary Key
fldState Text 3
fldLocality Text 40
fldPcode Text 4 (has to be text as some post codes have a
leading zero)
fldComments Text 40
As this table is rather large ,16,000+ records, I figured that it
might be better for whoever has to update data if there were an
intermediate table tblLocality (fldLocalityID, fldP5ID [link to
tblPcode5col], fldState, fldLocality and fldPcode) which stores
State,Locality,Pcode records that are actually being used in that
application (at best a few hundred). Naturally, every now and again,
particularly in the early stages, tblLocality wont have the desired
record as yet, therefore it needs to be retrieved from tblPcode5col.
So far I'm thinking of using a form with three combo boxes:
cboState ,cboLocality and cboPcode to get to the desired record in
tblPcode5col. Next would be to do an append query to retrieve the
found record and place it into tblLocality, the table which in day to
day running is being looked up from contact updates.
Is this a feasible approach or do I have to do a complete rethink?
So far I've only got the first two lookups going, state and Locality
and even there is a hiccup: Once the AfterUpdate of cboState fires a
dialog box "Enter Parameter Value" pops up with the selected State
abbreviation selected in cboState. Enter ANY state abbreviation and
that states' localities show up in cboLocaliity.
Private Sub cboState_AfterUpdate()
Me.cboLocality.RowSource = "SELECT tblPcode5col.fldLocality " & _
"FROM tblPcode5col " & _
"WHERE tblPcode5col.fldState = " &
Me.cboState & " " & _
"ORDER BY tblPcode5col.fldLocality;"
Me.cboLocality = Me.cboLocality.ItemData(1)
End Sub
From this behaviour I conclude that the query appears to be working
but ???
I'm looking forward for someone shining some light into this to help
me clear the fog of ignorance.
Elmar
Locality and Postcode (Australia). I've downloaded the current listing
and modified it to a table tblPcode5col with unique records and 5
columns:
fldP5ID Autonumber Primary Key
fldState Text 3
fldLocality Text 40
fldPcode Text 4 (has to be text as some post codes have a
leading zero)
fldComments Text 40
As this table is rather large ,16,000+ records, I figured that it
might be better for whoever has to update data if there were an
intermediate table tblLocality (fldLocalityID, fldP5ID [link to
tblPcode5col], fldState, fldLocality and fldPcode) which stores
State,Locality,Pcode records that are actually being used in that
application (at best a few hundred). Naturally, every now and again,
particularly in the early stages, tblLocality wont have the desired
record as yet, therefore it needs to be retrieved from tblPcode5col.
So far I'm thinking of using a form with three combo boxes:
cboState ,cboLocality and cboPcode to get to the desired record in
tblPcode5col. Next would be to do an append query to retrieve the
found record and place it into tblLocality, the table which in day to
day running is being looked up from contact updates.
Is this a feasible approach or do I have to do a complete rethink?
So far I've only got the first two lookups going, state and Locality
and even there is a hiccup: Once the AfterUpdate of cboState fires a
dialog box "Enter Parameter Value" pops up with the selected State
abbreviation selected in cboState. Enter ANY state abbreviation and
that states' localities show up in cboLocaliity.
Private Sub cboState_AfterUpdate()
Me.cboLocality.RowSource = "SELECT tblPcode5col.fldLocality " & _
"FROM tblPcode5col " & _
"WHERE tblPcode5col.fldState = " &
Me.cboState & " " & _
"ORDER BY tblPcode5col.fldLocality;"
Me.cboLocality = Me.cboLocality.ItemData(1)
End Sub
From this behaviour I conclude that the query appears to be working
but ???
I'm looking forward for someone shining some light into this to help
me clear the fog of ignorance.
Elmar