Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. Error Code 3021:

Error Code 3021:

Scheduled Pinned Locked Moved Visual Basic
helpdatabasemysqltutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    amitranjanmishra
    wrote on last edited by
    #1

    Hi Group, I need an Urgent Help. I have been connecting my application to a remote mysql database(For development it is in lan only). I fail to retrieve data from database I have used this: if rs.eof then rs.movefirst ' have also used rs.movelast else rs.movelast endif but it does not help....... Tell me how to rectify it.... Thanks Amit amit mishra

    R 1 Reply Last reply
    0
    • A amitranjanmishra

      Hi Group, I need an Urgent Help. I have been connecting my application to a remote mysql database(For development it is in lan only). I fail to retrieve data from database I have used this: if rs.eof then rs.movefirst ' have also used rs.movelast else rs.movelast endif but it does not help....... Tell me how to rectify it.... Thanks Amit amit mishra

      R Offline
      R Offline
      Rob Graham
      wrote on last edited by
      #2

      you also need to check for rs.bof. If the recordset is empty (no rows returned) BOTH eof and bof will be true, and movefirst, movelast, movenext, moveprevious and move(bmk) will all return an error, sice there is no record to move to. Absolute faith corrupts as absolutely as absolute power Eric Hoffer All that is necessary for the triumph of evil is that good men do nothing. Edmund Burke

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups