J
John Daily
I am having a problem with this code, especially the
runsql. On the form the user will click a check box
(Completed) and then will click on the save button. This
should update the Patient Information table for a specific
acct # and will make the check box true if marked true.
The form is bound to that Patient Information table and
the check box is bound to that same table. All other
textbox's are unbound and get their info from a list box.
Here is the code for the button:
-------------
Private Sub cmdSaveRecord_Click()
Dim strSQL As String
Dim strwhere As String
Dim varItem As Variant
For Each varItem In Me.lstPatientDenials.ItemsSelected
strwhere = strwhere & "[Patient Information].acct_num
= " & Me.lstPatientDenials.Column(0)
Next varItem
RunSQL "UPDATE [Patient Information] SET [Patient
Information].Completed = " & Me.Completed & " WHERE (" &
strwhere & ");"
lstPatientDenials.Requery
End Sub
TIA,
John
runsql. On the form the user will click a check box
(Completed) and then will click on the save button. This
should update the Patient Information table for a specific
acct # and will make the check box true if marked true.
The form is bound to that Patient Information table and
the check box is bound to that same table. All other
textbox's are unbound and get their info from a list box.
Here is the code for the button:
-------------
Private Sub cmdSaveRecord_Click()
Dim strSQL As String
Dim strwhere As String
Dim varItem As Variant
For Each varItem In Me.lstPatientDenials.ItemsSelected
strwhere = strwhere & "[Patient Information].acct_num
= " & Me.lstPatientDenials.Column(0)
Next varItem
RunSQL "UPDATE [Patient Information] SET [Patient
Information].Completed = " & Me.Completed & " WHERE (" &
strwhere & ");"
lstPatientDenials.Requery
End Sub
TIA,
John