Login | |
|
 |
RE: Variable not read right (syntax error) - 9/14/2006 1:16:58 AM
|
|
 |
|
| |
ebgreen
Posts: 5246
Score: 31
Joined: 7/12/2005
Status: online
|
Does this work for you? objRecordset.Open "Select * FROM " & strFile & " where Badge ='" & strBadge & "'", _ objConnection, adOpenStatic, adLockOptimistic, adCmdText
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: Variable not read right (syntax error) - 9/14/2006 7:54:55 AM
|
|
 |
|
| |
ebgreen
Posts: 5246
Score: 31
Joined: 7/12/2005
Status: online
|
Hmmm...it looks like you are pulling this from a delimited text file? Is that the case? If so, I would expect all the fields to be type string. Curious.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: Variable not read right (syntax error) - 9/15/2006 8:35:57 AM
|
|
 |
|
| |
ebgreen
Posts: 5246
Score: 31
Joined: 7/12/2005
Status: online
|
You could easily pull from multiple files. I would suggest using an ini file though because it will make sure your data is handled correctly. You can just copy the ini block for temp_Output.txt in the ini and change the header for the block to the name of another file that you want to use. As an aside, using an ini file would let you avoid parsing the data into a temp file in the first place since it would support fixed length fields.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
|
|