mloucel
Member
- Local time
- Today, 01:54
- Joined
- Aug 5, 2020
- Messages
- 356
Hello All:
I got a problem with this statement:
This is the result using Debug:
" UPDATE PatientT Set AuthCanceled = True Where PatientID = 3 "
This is my first time trying to use SQL directly to VBA, and I got the following error:
Too Few Parameters expected 1
I have followed the example here:
AWF Example
But I cannot figure out what is my error, please any help will be appreciated, and if you can let me know what is the error so I can learn.
Maurice.
I got a problem with this statement:
Code:
Dim strSQL As String
strSQL = "UPDATE PatientT " & _
"Set AuthCanceled = True " & _
" Where PatientID = " & Me.PatientID
Debug.Print strSQL
CurrentDb.Execute strSQL, dbFailOnError
MsgBox "Wait.."
This is the result using Debug:
" UPDATE PatientT Set AuthCanceled = True Where PatientID = 3 "
This is my first time trying to use SQL directly to VBA, and I got the following error:
Too Few Parameters expected 1
I have followed the example here:
AWF Example
But I cannot figure out what is my error, please any help will be appreciated, and if you can let me know what is the error so I can learn.
Maurice.