CharlesWhiteman
Registered User.
- Local time
- Today, 22:42
- Joined
- Feb 26, 2007
- Messages
- 421
I am a bit stumped as to why I get a runtime 3134 error on this piece of code.
They are all text values
They are all text values
Code:
Dim strUserName As String
strUserName = Forms!FrmPrimaryData.FrmPrimaryDataInstallsSubFrm.Form.txtMacAddress
Dim strIDValue As String
strIDValue = Nz(DMax("[ID]", "radreply"), 0) + 1
Dim strAttribute As String
strAttribute = "Monthly-Transfer-Prepaid"
Dim strOP As String
strOP = ":="
Dim strValue As String
strValue = "100000000"
Dim strSQLAddGig As String
strSQLAddGig = "INSERT INTO radreply (ID, UserName, Attribute, op, Value)"
strSQLAddGig = strSQLAddGig & " VALUES('" & [strIDValue] & "', '" & [strUserName] & "','" & [strAttribute] & "', '" & [strOP] & "', '" & [strValue] & "')"
DoCmd.RunSQL strSQLAddGig