Peter Bellamy
Registered User.
- Local time
- Today, 02:48
- Joined
- Dec 3, 2005
- Messages
- 295
I have a Form/Subform design which shows Returns (Form) and Goods Returned (subform) information.
They are based on 2 tables, 'Return records' and 'Goods'.
When completed it is possible on the subform, if the information has been
provided, to associate the goods with their original assembly and the unique serial number of that assembly is written into the Goods record, [aserial]
When this information is completed then a button becomes visible and onclick it will show another form which is the SerialNo Record for the assembly.
What I want to do is the reverse.
When the SerialNo Record form is opened (on its own) a button becomes visible if there are 'Return records' for that serial no.
OnClick of that button it has to open up all the Return records that have that serial number.
I have all of the above working except getting all the Return records to appear. Writing the Where condition for opening form has me beat!
This what I have tried and it seems the "Forms!.... " is unrecognised as it brings up a pop up.
"Forms![Return record]![Goods Data].Form.[goods_aserialno] = '" & Me![certgas_serialno] & "'"
Can someone guide me please?
Cheers
They are based on 2 tables, 'Return records' and 'Goods'.
When completed it is possible on the subform, if the information has been
provided, to associate the goods with their original assembly and the unique serial number of that assembly is written into the Goods record, [aserial]
When this information is completed then a button becomes visible and onclick it will show another form which is the SerialNo Record for the assembly.
What I want to do is the reverse.
When the SerialNo Record form is opened (on its own) a button becomes visible if there are 'Return records' for that serial no.
OnClick of that button it has to open up all the Return records that have that serial number.
I have all of the above working except getting all the Return records to appear. Writing the Where condition for opening form has me beat!
This what I have tried and it seems the "Forms!.... " is unrecognised as it brings up a pop up.
"Forms![Return record]![Goods Data].Form.[goods_aserialno] = '" & Me![certgas_serialno] & "'"
Can someone guide me please?
Cheers