H
Hannah
Hello,
I'm a self-taught access newbie so please accept my apologies if the answer
to this is already out there and I just haven't recognised it!
I've got a frmCountry and a sfrmHarbours, each has a combo box on.
cboCountry (main form) lets you choose a country and cboHarbour (sub form)
lets you choose a harbour from that country. frmCountry also has all the
fields for country (e.g. contact person, address) and sfrm Harbour also has
all the fields about the harbour (number of vessels, comments, type). To get
the forms to open blank, I've used this code (although I realise this isn't
ideal and somebody elsewhere suggested using a filter but I've no idea how to
do this):
DoCmd.RunCommand acCmdRecordsGoToNew
Which is great because my form opens blank BUT as soon as I make a selection
in cboCountry, cboHarbour remains blank but a record still shows up in all
the Harbour fields. What can I do to get the cboHarbour AND Harbour fields to
remain blank until I make a selection in cboHarbour? Thanks already for your
help - the advice and support I've received from this group has been amazing!
Feel free to suggest ways to improve my design too - I've just sort of
muddled through so there may well be a much better way to be doing this!
I'm a self-taught access newbie so please accept my apologies if the answer
to this is already out there and I just haven't recognised it!
I've got a frmCountry and a sfrmHarbours, each has a combo box on.
cboCountry (main form) lets you choose a country and cboHarbour (sub form)
lets you choose a harbour from that country. frmCountry also has all the
fields for country (e.g. contact person, address) and sfrm Harbour also has
all the fields about the harbour (number of vessels, comments, type). To get
the forms to open blank, I've used this code (although I realise this isn't
ideal and somebody elsewhere suggested using a filter but I've no idea how to
do this):
DoCmd.RunCommand acCmdRecordsGoToNew
Which is great because my form opens blank BUT as soon as I make a selection
in cboCountry, cboHarbour remains blank but a record still shows up in all
the Harbour fields. What can I do to get the cboHarbour AND Harbour fields to
remain blank until I make a selection in cboHarbour? Thanks already for your
help - the advice and support I've received from this group has been amazing!
Feel free to suggest ways to improve my design too - I've just sort of
muddled through so there may well be a much better way to be doing this!