Beany
Registered User.
- Local time
- Today, 12:52
- Joined
- Nov 12, 2006
- Messages
- 155
Hi,
im struggling to bring a report above a form.
there is a combobox in the form, from where i select a username and bring his details up in a report(Report2).............
ive got the following code for the OnOpen event:
my report is called Report2.............
(Report 2 = includes details of all users)
but from the combobox, i select a username and it brings up ONLY his/her details.......
how do i implement this into my database? what do i change?
im using the following code for the combobox afterUpdate:
im confused........
im struggling to bring a report above a form.
there is a combobox in the form, from where i select a username and bring his details up in a report(Report2).............
ive got the following code for the OnOpen event:
PHP:
Call DoCmd.SelectObject(ObjectType:=acReport, ObjectName:=Me.Name)
my report is called Report2.............
(Report 2 = includes details of all users)
but from the combobox, i select a username and it brings up ONLY his/her details.......
how do i implement this into my database? what do i change?
im using the following code for the combobox afterUpdate:
PHP:
Private Sub Combo0_AfterUpdate()
DoCmd.OpenReport "Report2", acPreview, "", "[userID]=[Forms]![comboreport]![Combo0]"
End Sub
im confused........