Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > ADO Data > Help with SQL S...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 4204 of 4320
Post > Topic >>

Help with SQL String from Access Query

by =?Utf-8?B?amFtZXNmcmVkZHlj?= <jamesfreddyc@[EMAIL PROTECTED] Apr 9, 2008 at 10:58 AM

I need to get this UPDATE statement, which runs correctly as an Access
Query 
and correctly use this as a string in my VB6/ADO application.  Any help is

appreciated as I am not doing this correctly.

Existing Access Query:

UPDATE TBLPID SET TBLPID.f_TBLPID_PID = Left([f_TBLPID_PID],4) & "-" & 
Mid([f_TBLPID_PID],5,2) & "-" & Mid([f_TBLPID_PID],7,4);


Need something like:

Dim sql As String
sql = "UPDATE TBLPID SET TBLPID.f_TBLPID_PID = Left([f_TBLPID_PID],4) & ""
- 
"" & Mid([f_TBLPID_PID],5,2) & "" - "" & Mid([f_TBLPID_PID],7,4);"""
 




 5 Posts in Topic:
Help with SQL String from Access Query
=?Utf-8?B?amFtZXNmcmVkZHl  2008-04-09 10:58:05 
Re: Help with SQL String from Access Query
"Bob Barrows [MVP]&q  2008-04-09 14:54:17 
Re: Help with SQL String from Access Query
=?Utf-8?B?amFtZXNmcmVkZHl  2008-04-10 06:07:01 
Re: Help with SQL String from Access Query
"Daniel Crichton&quo  2008-04-10 14:25:46 
Re: Help with SQL String from Access Query
=?Utf-8?B?amFtZXNmcmVkZHl  2008-04-10 06:26:00 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 14:15:53 CST 2008.