P
Patrick
hi all,
i am having problems inserting some data. can anyone see a problem with
this code?
strCurrency = frmSettings.txtSettingsCurrenciesAddCurrency.Value
dblConversion =
frmSettings.txtSettingsCurrenciesAddConversion.Value
strSymbol = frmSettings.txtSettingsCurrenciesAddSymbol.Value
strDefault = frmSettings.chkSettingsCurrenciesAddDefault.Value
'write SQL
strSQL = "INSERT INTO [Currencies] (currency, conversion,
symbol, use) VALUES ('" & strCurrency & "', " & dblConversion & ", '" &
strSymbol & "', " & strDefault & ")"
'run query
DoCmd.SetWarnings False
DoCmd.RunSQL strSQL
DoCmd.SetWarnings True
I just get error 3134 but it doesnt tell me what the problem is, and i
cant find it. I have the table [Currencies], with the following table
structure:
[id] {autoNumber}
[currency] {text}
[symbol] {number}
[use] {number}
any help would be great. thanks
Patrick
i am having problems inserting some data. can anyone see a problem with
this code?
strCurrency = frmSettings.txtSettingsCurrenciesAddCurrency.Value
dblConversion =
frmSettings.txtSettingsCurrenciesAddConversion.Value
strSymbol = frmSettings.txtSettingsCurrenciesAddSymbol.Value
strDefault = frmSettings.chkSettingsCurrenciesAddDefault.Value
'write SQL
strSQL = "INSERT INTO [Currencies] (currency, conversion,
symbol, use) VALUES ('" & strCurrency & "', " & dblConversion & ", '" &
strSymbol & "', " & strDefault & ")"
'run query
DoCmd.SetWarnings False
DoCmd.RunSQL strSQL
DoCmd.SetWarnings True
I just get error 3134 but it doesnt tell me what the problem is, and i
cant find it. I have the table [Currencies], with the following table
structure:
[id] {autoNumber}
[currency] {text}
[symbol] {number}
[use] {number}
any help would be great. thanks
Patrick