Hi,
I cant seem to get my head around this..I need to create a strWhere that will print the report if a checkbox isnt ticked.
This is my current command button code
Private Sub Command37_Click()
Dim strWhere As String
If Me.Dirty Then 'Save any edits.
Me.Dirty = False
End If
If Me.NewRecord Then 'Check there is a record to print
MsgBox "Select a record to print"
Else
strWhere = "[ID] = " & Me.[ID]
DoCmd.OpenReport "Connote1", acNormal, , strWhere
End If
DoCmd.GoToRecord acDataForm, "Connote", acNewRec
End Sub
The Control Source is Manifest and the form label is Check52
In the Table it come up yes if I tick it and no If I dont...I want it to only print if checkbox is not ticked otherwise save and goto new record
I hope that makes sense