A
Afrosheen via AccessMonster.com
The code below {sql6} is where I'm having the problem. The code for {sql5}
works in another program I have so I thought I could use the basics of it.
What I need it to do is to clear out [set to null] the field called [super1]
using the txtAssist string.
Your help would be much appreciated.
Dim SQL, txtAssist As String
Dim dtm As ADODB.Connection, sql6 As String
10 txtAssist = cmboSupervisor.Column(3)
'sql5 = "update tbl_roster set location = Null where shift = 'b-days' And Not
(tbl_roster.pp) = true"
20 If SupMan = True Then
30 MsgBox "There should be a check in the box"
40 Else
50 MsgBox "No check in the box"
60 Set dtm = CurrentProject.AccessConnection
70 sql6 = "Update tblMain set super1 = Null where super1 =" &
txtAssist
80 dtm.Execute sql6, adCmdText + adExecuteNoRecords
90 Set dtm = Nothing
100 End If
Thanks for your help.
works in another program I have so I thought I could use the basics of it.
What I need it to do is to clear out [set to null] the field called [super1]
using the txtAssist string.
Your help would be much appreciated.
Dim SQL, txtAssist As String
Dim dtm As ADODB.Connection, sql6 As String
10 txtAssist = cmboSupervisor.Column(3)
'sql5 = "update tbl_roster set location = Null where shift = 'b-days' And Not
(tbl_roster.pp) = true"
20 If SupMan = True Then
30 MsgBox "There should be a check in the box"
40 Else
50 MsgBox "No check in the box"
60 Set dtm = CurrentProject.AccessConnection
70 sql6 = "Update tblMain set super1 = Null where super1 =" &
txtAssist
80 dtm.Execute sql6, adCmdText + adExecuteNoRecords
90 Set dtm = Nothing
100 End If
Thanks for your help.