I have this code in a form on a database:-
InputBendCert: strMessage = InputBox(“Enter Angle Bend Cert if applicable”, “Angle Bend Cert”) If strMessage = “” Then intNewItem = MsgBox(“You have not entered a Angle Bend Cert. ” & Chr(13) & Chr(13) & _ “Do you want to print the report without without Angle Bend Cert?”, vbYesNoCancel + vbQuestion + vbDefaultButton2, “No Procedure”) If intNewItem = vbCancel Then Cancel = True If intNewItem = vbNo Then GoTo InputBendCert Else Me![BENDLABEL].Caption = “ANGLE BEND CERT No: ” & strMessage Me![RECHECKCERTLABEL].Caption = “RE-CHECK CERT No: ” & Forms!frmCofCNew![ReCheck No] End If
This prints the Angle Bend Cert and Re-Check Cert No on a report when printed. It is triggered by the value of a control on the form.The only thing is, it isn’t saved. If we need to re-print the report, this information has to be input again. We do it this way, so we don’t have to change the layout of the form just for certain items. Is there a way of storing the input into a table?