F
firecop1
I have a button on a form called "MainForm" that when clicked I want to open
another form which should show all "Rental" records relating to the location
on the "MainForm"
In my MainTable which is what the MainForm" is populated by I have a field
called ListingID (which is also my keyfield and as such is an AutoNumber).
In my "Rental" table I have a field called "PremID" which is a number field
that I want to use to tie the records into the MainTable.
(I will be using the same field name in other tables to link them to the
MainTable as well).
I am confused as to how and where to setup whatever needs to be done to open
the Rental form filtered to the record (or if there are no records at a new
record). I tried when creating the button using the macro to choose form
operation then open form then chose my Rental form then "open the form and
find specific data to display" but when it gets to the select fields that
contain matching data I can chhose a field from the Rental table but nothing
appears under the main table (no fields whatsoever).
Perhaps I need another field in my main table to use as a linking field?
Any help would surely be appreciated here and as always thanks in advance
for your help.
Andrew J. Brofman
Chief Fire Marshal
Lake Grove, NY
another form which should show all "Rental" records relating to the location
on the "MainForm"
In my MainTable which is what the MainForm" is populated by I have a field
called ListingID (which is also my keyfield and as such is an AutoNumber).
In my "Rental" table I have a field called "PremID" which is a number field
that I want to use to tie the records into the MainTable.
(I will be using the same field name in other tables to link them to the
MainTable as well).
I am confused as to how and where to setup whatever needs to be done to open
the Rental form filtered to the record (or if there are no records at a new
record). I tried when creating the button using the macro to choose form
operation then open form then chose my Rental form then "open the form and
find specific data to display" but when it gets to the select fields that
contain matching data I can chhose a field from the Rental table but nothing
appears under the main table (no fields whatsoever).
Perhaps I need another field in my main table to use as a linking field?
Any help would surely be appreciated here and as always thanks in advance
for your help.
Andrew J. Brofman
Chief Fire Marshal
Lake Grove, NY