-
WSashcroal
AskWoody LoungerHi Rory,
No, the brackets dont appear to make a difference. I could use the abs() you suggested, but the column is the leading column on an index in a large table, and putting a function on the column will force a table scan.
I am certain this issue pertains to using an ODBC driver with OLE DB – and for some reason it is being split. It is certainly more bizarre, that if I use the connection via a DSN it works! It has to be something that is happening with the DSN less connection.
-
WSashcroal
AskWoody LoungerHi All,
I get a problem when I run a select statement against a sybase database from VB/ASP. The problem appears when the select contains an or, ie. “select deal_nr from fxcash where deal_nr = 10090 or deal_nr = -10090”
If I dont include the or, the code works fine. If I include the or, i get the following error:
Microsoft OLE DB Provider for ODBC Drivers error ‘80040e21’
Microsoft OLE DB Provider operation generated errors. Check OLE DB status value, if available. No work was done.I checked the knowledge base and it says this can happen when OLEDB_SERVICES flag is missing from the registry, but this is there on my machine.
Again, if I remove the or, the code works fine. It appears that ADO is splitting the statement into two parts. Also, I should have mentioned – I create the ado connection DSN less. If i specify a DSN this works!
Does anyone have any ideas?
Thanks for your help.
Regards
Al
-
WSashcroal
AskWoody LoungerHi HansV,
Thanks for the quick reply, but unfortunately it makes no difference.
Regards
Al
-
WSashcroal
AskWoody LoungerIf you want a book, Dan Applemens “Visual Basic Programmers Guide to the Win32 API” is very good. Other than that there are probably a few good websites around.
If you throw a do events in to the loop, you should be ok.
Al
-
WSashcroal
AskWoody LoungerTim,
I just checked the command line options (vb6 /?) and what you want is
vb6 /make projectname
This tells VB to compile projectname and make an executable from it, using the existnig settings stored in the project file.
HTH
Al
-
WSashcroal
AskWoody LoungerUsing shell in the command line is the best way to compile your apps. Why not shell the command and dont show the window (if it is the dos window puts you off). Shell the command prompt hidden
iReturn = Shell(sCommand, vbHide)
then get a Handle to the process
hProc = OpenProcess(PROCESS_ALL_ACCESS, false, iReturn)then in a loop
check GetExitCodeProcess hProc, iExit
and exit when iExit = &H103I can’t remember the comment to compile – but it is in MSDN.
Cheerz
Al
-
WSashcroal
AskWoody LoungerSeptember 26, 2001 at 1:47 pm in reply to: Excel external data from access (Access 97/ Excel 97) #544171Um, When you have a DSN, which ODBC enabled applications use to connect to data sources, and an application, which uses these DSN’s, hardcodes a link to a file path – rather than checking from the DSN – that IS a bug.
If it looks like a duck…
Regards
Al
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
7 tips to get the most out of Windows 11
by
Alex5723
2 hours, 12 minutes ago -
Using Office apps with non-Microsoft cloud services
by
Peter Deegan
1 hour, 54 minutes ago -
I installed Windows 11 24H2
by
Will Fastie
1 hour, 38 minutes ago -
NotifyIcons — Put that System tray to work!
by
Deanna McElveen
2 hours, 54 minutes ago -
Decisions to be made before moving to Windows 11
by
Susan Bradley
1 hour, 17 minutes ago -
Port of Seattle says ransomware breach impacts 90,000 people
by
Nibbled To Death By Ducks
3 hours, 7 minutes ago -
Looking for personal finance software with budgeting capabilities
by
cellsee6
4 hours, 29 minutes ago -
ATT/Yahoo Secure Mail Key
by
Lil88reb
15 hours, 48 minutes ago -
Devices with apps using sprotect.sys driver might stop responding
by
Alex5723
20 hours, 10 minutes ago -
Neowin – 20 times computers embarrassed themselves with public BSODs and goofups
by
EP
1 day, 4 hours ago -
Slow Down in Windows 10 performance after March 2025 updates ??
by
arbrich
7 hours ago -
Mail from certain domains not delivered to my outlook.com address
by
pumphouse
13 hours, 8 minutes ago -
Is data that is in OneDrive also taking up space on my computer?
by
WShollis1818
23 hours, 47 minutes ago -
Nvidia just fixed an AMD Linux bug
by
Alex5723
2 days, 15 hours ago -
50 years and counting
by
Susan Bradley
6 hours, 7 minutes ago -
Fix Bluetooth Device Failed to Delete in Windows Settings
by
Drcard:))
1 day, 22 hours ago -
Licensing and pricing updates for on-premises server products coming July 2025
by
Alex5723
3 days, 2 hours ago -
Edge : Deprecating window.external.getHostEnvironmentValue()
by
Alex5723
3 days, 2 hours ago -
Rethinking Extension Data Consent: Clarity, Consistency, and Control
by
Alex5723
3 days, 2 hours ago -
OneNote and MS Word 365
by
CWBillow
3 days, 4 hours ago -
Ultimate Mac Buyers Guide 2025: Which Mac is Right For You?
by
Alex5723
3 days, 4 hours ago -
Intel Unison support ends on Windows 11 in June
by
Alex5723
3 days, 4 hours ago -
April 2025 — still issues with AMD + 24H2
by
Kevin Jones
20 hours, 18 minutes ago -
Windows 11 Insider Preview build 26200.5518 released to DEV
by
joep517
3 days, 16 hours ago -
Windows 11 Insider Preview build 26120.3671 (24H2) released to BETA
by
joep517
3 days, 16 hours ago -
Forcing(or trying to) save Local Documents to OneDrive
by
PateWilliam
4 days, 1 hour ago -
Hotpatch for Windows client now available (Enterprise)
by
Alex5723
3 days, 13 hours ago -
MS-DEFCON 2: Seven months and counting
by
Susan Bradley
2 days, 14 hours ago -
My 3 monitors go black & then the Taskbar is moved to center monitor
by
saturn2233
4 days, 10 hours ago -
Apple backports fixes
by
Susan Bradley
3 days, 16 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.