Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update SQL
Message
From
04/12/2009 17:37:28
 
 
General information
Forum:
Microsoft Office
Category:
Access
Title:
Environment versions
Microsoft Office:
Office 2003
Miscellaneous
Thread ID:
01437723
Message ID:
01437725
Views:
17
Not sure why, but there is a module with this code
'On Error Resume Next
'
'Const adOpenStatic = 3
'Const adLockOptimistic = 3
'
'Set objConnection = CreateObject("ADODB.Connection")
'Set objRecordSet = CreateObject("ADODB.Recordset")
'
'objConnection.Open _
'    "Provider=Microsoft.Jet.OLEDB.4.0; " & _
'        "Data Source=D:\promis-e 2007 Data\Databases\PartsDB.mdb"
'
'objRecordSet.Open "SELECT * FROM Parts_Database", _
'    objConnection, adOpenStatic, adLockOptimistic
'
'objRecordSet.MoveFirst
'
'Do Until objRecordSet.EOF
'    Wscript.Echo objRecordSet.Fields.Item("Detailed_Description1")
'    objRecordSet.MoveNext
'Loop
Once I commented this, my update command worked as expected. Oh well...

Thanks anyway
Jon

>I'm trying to run what in VFP would be easy.
>
>In access I'm getting a Compile Error. in query expression 'TRIM([parts_database.user1])'. from this SQL statement
>
>
UPDATE parts_database
>SET parts_database.user1 = TRIM([parts_database.user1]);
>
>
>What gives?
Thanks
Jon
Non-MVP Non-MCP Non-MCSE

Visual FoxPro, What else is there?
Previous
Reply
Map
View

Click here to load this message in the networking platform