M
Martin Hopkins
hello,
I have created a log on form where the user enters name, employee number.
Also they select what records they wish to view from two combo boxes. They
select a Wing and a Sqn.
When they select view records, they only see the records for the above
selection.
That is great, but I need soome people to see all records for a Wing. I
cannot get this to work.
The code used behind the open records button is:
stDocName = "FrmPersonnel"
stLinkCriteria = "[Wing_ID]=" & Me![wing_id]
stLinkCriteria = "[Squadron_ID]=" & Me![Squadron_id]
DoCmd.OpenForm stDocName, , , stLinkCriteria
How can I get the restriction in returning certain records if say I want to
see a particular wing and I do not enter any Squadron value?
thanks for any help.
Martin Hopkins
I have created a log on form where the user enters name, employee number.
Also they select what records they wish to view from two combo boxes. They
select a Wing and a Sqn.
When they select view records, they only see the records for the above
selection.
That is great, but I need soome people to see all records for a Wing. I
cannot get this to work.
The code used behind the open records button is:
stDocName = "FrmPersonnel"
stLinkCriteria = "[Wing_ID]=" & Me![wing_id]
stLinkCriteria = "[Squadron_ID]=" & Me![Squadron_id]
DoCmd.OpenForm stDocName, , , stLinkCriteria
How can I get the restriction in returning certain records if say I want to
see a particular wing and I do not enter any Squadron value?
thanks for any help.
Martin Hopkins