Hi,
I have a button on one of my forms that runs the following event procedure:
Private Sub cmdAltOrder_Click()
Dim altorder As String
Dim numaltorder As Long
altorder = InputBox("Enter the order number for which you want a summary", "Enter Order Number")
If IsNumeric(altorder) Then
numaltorder = CLng(altorder)
If DCount("*", "[order details]", "[RTP number]=" & numaltorder) > 0 Then
DoCmd.OpenReport "Orders Summary", acViewPreview, , "[OrderID]=" & numaltorder
Else
MsgBox "No summary is available for the order number you entered"
End If
Else
MsgBox "Value entered is not a number"
End If
End Sub
I would like to make that work from the switchboard. I have to create a macro to do the event procedure above, but unfortunately I don't know macros -.-
Would somebody give me a hand?
Thanks!