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

  • Home
  • SEARCH
  • 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 6142605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:24:39+00:00 2026-05-23T18:24:39+00:00

I am writing an app in vb6 using sql server 2005. here is my

  • 0

I am writing an app in vb6 using sql server 2005. here is my current code.

Dim Sqlstring As String
Dim rstCurrentTicket As Recordset

Sqlstring = "Select SubmiterName, LastViewDate, Department, Description, Urgency, SubmitDate, ResolvedDate from TroubleTickets where Title ='" + Trim(TicketComboBox.Text) + "'"
Set rstCurrentTicket = cnnSel.OpenRecordset(Sqlstring)


NameText.Text = rstCurrentTicket!SubmiterName
DeptText.Text = rstCurrentTicket!Department
Me.DescriptionText = rstCurrentTicket!Description
Me.UrgencyText = rstCurrentTicket!Urgency

when I run this code i recieve an error code saying:

“Run-Time error: ‘3021’”
“no current record”

and it highlights this line of code:

NameText.Text = rstCurrentTicket!SubmiterName

any suggestions of how to fix this?

  • 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-23T18:24:39+00:00Added an answer on May 23, 2026 at 6:24 pm

    Keith is exactly right, but I wanted to give a little more detail

    For ADO and DAO, you have a Begin-of-File marker (BOF)and an End-of-File marker(EOF). The records are returned like this

    [BOF]
    [Record one] <-
    [Record two]
    ...
    [Record n]
    [EOF]
    

    The arrow points to where the cursor is. The cursor points to which record in the record set that is returned.

    When no records are returned, you get this

    [BOF]
    [EOF]
    

    So, if both flags are set, there are no records. If EOF is set, either you have no records, or you’ve moved past the last record. (You move that cursor to the next record by this command.)

    rstCurrentTicket.MoveNext
    

    You can also check by

    If (rstCurrentTicket.EOF and rstCurrentTicket.BOF) Then
         msgbox "There were no Trouble Tickets found."
    
    Else
        'Do something here.
    
    End If
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing an app using asp.net-mvc deploying to iis6. I'm using forms authentication. Usually
Writing an app with django, using the psycopg2 engine. It doesn't always seem to
I'm writing an app (in iOS 5 using ARC!) that presents several hundred objects
Im writing an app for fellow students at my university to make using the
I'm writing delphi app which should have capability of loading plugins. I'm using JvPluginManager
I'm writing an app that takes in HTML code of a page and extracts
I writing app that connect to a web server (I am the owner of
Im writing an App for iPad using Orientation. The App-Delegate.h has a window, an
I am writing an app to query the Google shopping api. Using the request
I'm writing an app the generates a big xlsx file using apache-POI. At a

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.