Type Mismatch error 13 
Author Message
 Type Mismatch error 13

What is the correct syntax for SQL-query in this case?

Qry = " INSERT  INTO MyTable (Date,Time, Value ) VALUES ("+ Date+","+Time+",
"'+Val(txtValue.text)+");"

Name - field gets information from textfield (txtValue.Text) , date and time
come from system.
I am using Access database where Value-field datatype is Number.
When I try to do this I get error number 13.



Mon, 25 Sep 2000 03:00:00 GMT  
 Type Mismatch error 13

Quote:
Mauri wrote...
>What is the correct syntax for SQL-query in this case?

>Qry = " INSERT  INTO MyTable (Date,Time, Value ) VALUES ("+ Date+","+Time+",
>"'+Val(txtValue.text)+");"

>Name - field gets information from textfield (txtValue.Text) , date and time
>come from system.
>I am using Access database where Value-field datatype is Number.
>When I try to do this I get error number 13.

Use & instead of + to do your concatenation. Just replace your + with &

Good luck

Bosun


http://members.aol.com/bbello5778/bosun.htm
Programmer/Analyst. Bloomington, IL



Mon, 25 Sep 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Type Mismatch Error 13

2. Using CurrentDB() receives Type Mismatch Error 13

3. Type mismatch error 13?

4. Help!!! Please, Type Mismatch error 13

5. Type mismatch error 13?

6. Type Mismatch Error 13

7. Passing a Recordset to function gives Type mismatch (error 13)

8. Worked fine yesterday, today I get Error 13 Type Mismatch errors

9. Error 13: Type Mismatch error

10. Type Mismatch Run-Time error 13

11. type mismatch error '13'????

12. Type mismatch, run-time error #13

 

 
Powered by phpBB® Forum Software