R
Ryan
This code works.
Private Sub AllIssuesRole_Click()
If Me!AllIssuesRole = True Then
DoCmd.RunSQL "INSERT INTO dbo_UsersRoles (Role,UserName) _
VALUES (" & Me!AllIssues & ",""" & Me!UserName & """);"
End If
End Sub
My question is this. Me!AllIssues and Me!UserName are both varchar(50), so
why do I have to put the 2 extra " at the beginning and end of """ &
Me!UserName & """ to prevent the "Enter perameter value" promt for UserName?
Private Sub AllIssuesRole_Click()
If Me!AllIssuesRole = True Then
DoCmd.RunSQL "INSERT INTO dbo_UsersRoles (Role,UserName) _
VALUES (" & Me!AllIssues & ",""" & Me!UserName & """);"
End If
End Sub
My question is this. Me!AllIssues and Me!UserName are both varchar(50), so
why do I have to put the 2 extra " at the beginning and end of """ &
Me!UserName & """ to prevent the "Enter perameter value" promt for UserName?