Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Quick SQL question
Message
From
24/09/1997 11:08:59
Brian Hartin
Custom Business Solutions
Iowa City, Iowa, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Quick SQL question
Miscellaneous
Thread ID:
00051415
Message ID:
00051415
Views:
78
All~

I am writing a VB 5 app which accesses data in a Visual FoxPro 5 database using ODBC Direct. I have one connection object created as follows:

' Create an ODBCDirect workspace.
Set wrkLabor = CreateWorkspace("ODBCWorkspace", "admin", "", dbUseODBC)

' Create ab ODBCDirect connection (analogous to a Jet database object)
Set conLabor = wrkLabor.OpenConnection("isnlabor", dbDriverNoPrompt, False, strConnect)

I have one SQL statement that will not work. It works fine from within FoxPro, and all of my other SQL statements work fine. Here is the statement:

update qseltest set qseltest.used = (qseltest.used + 5)

It is worth noting that qseltest is a local view. I have examined its properties and it appears to be updatable (as I mentioned earlier, I am able to use the above SQL statement to update this view from within FoxPro).

Thanks in advance for your help.

Brian Hartin
MCI Telecommunications
brian.hartin@MCI.Com
Reply
Map
View

Click here to load this message in the networking platform