C
christie peterson
I have been trying to get my command button to print a report showing only the current record on the form. I have searched this and other forums and found some answers but none have worked for me.
I'm not a programmer but have usually just used macros and queries to 'get it done'. I will list the two things I tried.. both failed.
One was using query with the below setup:
Field: tbl Root Cause.* | ID
Table: tbl Root Cause | tbl Root Cause
Criteria: | [Forms]![frmRoot Cause]|[ID]
This query returns a blank record.
the next was to Program the command button with an OnClick Event which read as follows
DoCmd.OpenReport "rpt Root Cause Form",acViewPreview
Reports![rpt Root Cause Form].Filter = "ID" = "&Me[ID]"
Reports![rpt Root Cause Form].FilterOn = True
This returns a debugging error
Any other suggestions?
EggHeadCafe - Software Developer Portal of Choice
WPF And The Model View View Model Pattern
http://www.eggheadcafe.com/tutorial...b-7374d3da3425/wpf-and-the-model-view-vi.aspx
I'm not a programmer but have usually just used macros and queries to 'get it done'. I will list the two things I tried.. both failed.
One was using query with the below setup:
Field: tbl Root Cause.* | ID
Table: tbl Root Cause | tbl Root Cause
Criteria: | [Forms]![frmRoot Cause]|[ID]
This query returns a blank record.
the next was to Program the command button with an OnClick Event which read as follows
DoCmd.OpenReport "rpt Root Cause Form",acViewPreview
Reports![rpt Root Cause Form].Filter = "ID" = "&Me[ID]"
Reports![rpt Root Cause Form].FilterOn = True
This returns a debugging error
Any other suggestions?
EggHeadCafe - Software Developer Portal of Choice
WPF And The Model View View Model Pattern
http://www.eggheadcafe.com/tutorial...b-7374d3da3425/wpf-and-the-model-view-vi.aspx