Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
Anyone know an ASP script for transferring data from an Excel sheet to an Access table, some of the fields of which contain names which have an apostrophe (') in them. I have tried all sorts of things but am getting tripped up by the apostrophe which is used as a field container in the SQL : "INSERT INTO tblResults Values(0,'" & rsExcel("FeisID") & "' , '" & rsExcel("CompNo") & "' , '" & rsExcel("Entry") & "' , '" & rsExcel("Name") & "' , '" & rsExcel("School") & "' , '" & rsExcel("Position") & "' , '0' , '" & Done & "')" The first field is the ID field of tblResults and need to be incremented automatically. If I leave the first value out, I get an error along the lines of "Number of query values and destination fields are not the same" Also, if the name field is like Harry O'Hare, the thing fails... Any ideas anyone? Many thanks Jim |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Query from Access into Excel cause Access to go to read only | Excel Discussion (Misc queries) | |||
Can Excel access data from Access?! | Excel Discussion (Misc queries) | |||
export access to excel. change access & update excel at same time | Excel Discussion (Misc queries) | |||
Access data -work in Excel- save in Access | Excel Programming | |||
Getting Access Error Messages when running Access through Excel | Excel Programming |