Expand|Select|Wrap|Line Numbers
- Dim strSQL As String
- strSQL = "SELECT EnableSpecialRate FROM tblCustomers"
- strSQL = strSQL & " WHERE CustomerID = Forms!frmACHCallConfirmation!ACHCompanyID;"
- If strSQL = true Then
- MsgBox "true"
- Else
- MsgBox "false"
- End If
Side note: the msgbox "true" and msgbox "false" will be replaced with other code. I'm just using that for testing purposes so that I know my if then else statement is working.
I'm using Access 2010.