• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Invalid Cursor sate Error... :argh:

 
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

Now that i solved one of the problems i had, i got into another one

Can some one please debug this code for me , i dont have a clue why its doing that! All my coding is the same, the only difference in this code is the UNION...



Dont worry about "why would you want drivers and cars combined!"

MS Access Database i'm using

Thanks
HannaH
[ April 03, 2006: Message edited by: H Melua ]
 
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
While it's not your problem with cursor state, you should learn the difference between UNION and UNION ALL.

UNION ALL is what you want here, not UNION, not least because it's more efficient.
 
H Melua
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you stu

As far as i know, the difference is that Union removes duplicate values! and thats what i want!

HannaH
 
stu derby
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by H Melua:
Thank you stu

As far as i know, the difference is that Union removes duplicate values! and thats what i want!

HannaH



OK.. If you can actually have a car and a driver that are the same, then you've got a very weird data model, but whatever...
 
H Melua
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You see Stu, i knew i will be asked similar questions to this, thats why i stated in my first post...

Originally posted by H Melua:
Dont worry about "why would you want drivers and cars combined!"



Thanks
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic