Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with report coding 1

Status
Not open for further replies.

nayfeh

Programmer
Mar 13, 2002
163
CA
I have a report that is generated through a form. The form is named frm_PickingList. It has text boxes for StartDate and EndDate.

The main table (tbl_NOHeader) has a Printed field. It's default is set to 0 (False). I would like to update this field to -1 (True) when the report gets printed and then have a text box named DUPLICATE that is visible if this field is True.

Similar to an invoice showing duplicate if it's not the original. Thanks in advance for your help.

Thanks,
TN
 
in the report close
docmd.runsql "update tablename set printed=true where date between " & forms!frm_PickingList.StartDate & "and" & forms!frm_PickingList.EndDate & ";"
in detail format

me.DUPLICATE.visible = me!printed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top