run time error '3464'

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi,
i dont understand why i have that type of error, because colume have the
same data type (number).
thanks,

currencySQL = "SELECT * from Currencys "
currencySQL = currencySQL & " where Currency_id = '" & Me!Currency_Id & "'"

Set rsCurrency = dbs.OpenRecordset(currencySQL)
 
SIN said:
hi,
i dont understand why i have that type of error, because colume have
the same data type (number).
thanks,

currencySQL = "SELECT * from Currencys "
currencySQL = currencySQL & " where Currency_id = '" & Me!Currency_Id
& "'"

Set rsCurrency = dbs.OpenRecordset(currencySQL)

Numbers don't get quotes around them.
 
sorry but i dont understand what you mean.
can you attach me to information about error type and solution?
thanks
 
SIN said:
sorry but i dont understand what you mean.
can you attach me to information about error type and solution?
thanks

You are putting single quotes around the value being pulled from your form.
That will make it a Text value rather than a Number value. Remove those
quotes and the query will work.


currencySQL = "SELECT * from Currencys "
currencySQL = currencySQL & " where Currency_id = " & Me!Currency_Id
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Concatenate Error 10
run time error 3464 4
Record with multiple lines 1
data type error 3464 - print record 2
Run-time error 3464 2
error 3464 3
Error code 3464 2
Run Time Error 3464 While Executing An Append Query 3

Back
Top