If Not (Me.RLCatssubform1.Form.Recordset.EOF And Me.RLCatssubform1.Form.Recordset.BOF) Then
If MsgBox("Are you sure you want to Delete?", vbYesNo) = vbYes Then
CurrentDb.Execute "Delete from dbo_COMPLIANCE_RESTR_CATEG " & _
"where ID=" & Me.RLCatssubform1.Form.Recordset.Fields("ID")...
Dim strSQL As String
If IsNull(Me.Text18) Then
MsgBox "Note not entered!"
Cancel = True
Exit Sub
Else:
End If
strSQL = "Insert Into dbo_COMPLIANCE_ACCT_NOTE(ACCT_CD, ACCT_NOTE) Values ('" & Me.cboAcName & "','" & Me.Text18 & "')"
Debug.Print strSQL...
If Not (Me.sfCategory.Form.Recordset.EOF And Me.sfCategory.Form.Recordset.BOF) Then
If MsgBox("Are you sure you want to Delete?", vbYesNo) = vbYes Then
CurrentDb.Execute "Delete from dbo_COMPLIANCE_CATEG " & _
"where ID=" & Me.sfCategory.Form.Recordset.Fields("ID")
Me.sfCategory.Form.Requery
End...
run-time error 3622: You must use the dbSeeChanges option with OpenRecordset when accessing a SQL Server table that has an identity column.
I have the following code and am getting the above error. I am accessing SQL Server Tables. (this worked when using local tables)
Can anyone help...
If created an ODBC connection to some SQL Tables and created forms from the fields on these tables. When I select form view or even layout view the form appears totally blank.
These forms worked when they were connected to local tables.
I do see the tables in the 'tables' section in Access...
I want to be able to create a 'button' that, when clicked, will pull data from a view created from SQL Tables and update fields in Access. is this possible? It will always be the same fields from the View updating the same fields in the tables.
thanks!!!
I can't for the life of me figure this out. The syntax looks good to me. Any help would be appreciated.
thanks
CurrentDb.Execute "Insert Into RulesNotCrD(AccountName, Note) Values ('" & Me.cboAcName & "','" & Me.Text18 & "')
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.