Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3321786
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:06:18+00:00 2026-05-17T23:06:18+00:00

I am using vb6 and trying to read an mdb file into a Set

  • 0

I am using vb6 and trying to read an mdb file into a

Set rs = New ADODB.Recordset
rs.Open SqlStr, mvarDB

this my criteria string “id = ‘SA / -AS 0N’ And mp <>’N'”, there is a record in the table which id is the above mentioned and its mp column is not N. but when the

   rs.MoveFirst

in watch window i can see the values of first column. but when below runs , the header says

   rs.Filter = sCriteria

” : Value Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.> :”
Appreciate ur help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T23:06:18+00:00Added an answer on May 17, 2026 at 11:06 pm

    ok the problem was 2 fold onedaywhen comment was helpful but the problem was,

    1- the mdb file had worng datatype which was NUMBER so every null in the row caused the record to reach EOF. So i set datatype to TEXT.

    2-TO FIND THE NULL IN THE RECORD SET I AM DOING A

    dataSet.Find sCriteria, adSearchForward 'sCriteria = id = 'NW'
    

    Then i check this column if that is not null,

    If IsNull(dataSet!col1) Then
    

    If found the null i use the ‘sCriteria = id = ‘NW’ else i use id = ‘NW’ And mp <>’N’.

    is working great. The Null was causing the problem as pointed out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using VB6 and trying to create a DAO recordset from an array of
I am trying to uncompress some data created in VB6 using the zlib API.
I have a VB6 dll that is trying to create a COM object using
I am using VB6 and the Win32 API to write data to a file,
I'm using a VB6 PictureBox on my User Control. I set the PictureBox's picture,
How exactly using VB6 can I can call any Windows shell command as you
I'm working on the creation of an ActiveX EXE using VB6, and the only
A VB6 application is using the Interop Forms Toolkit to work with forms written
Im having trouble using a .NET COM in vb6, It compiles ok and I
I have a legacy VB6 application that was built using MSDE. As many client's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.