Results 1 to 2 of 2
  1. #1
    drunkenneo is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jun 2013
    Posts
    199

    Records displaying Problem


    I am on code want to display records on the form by order_number, but i am unable to do it.
    Please help me if i am going wrong anywhere:

    Private Sub Combo63_AfterUpdate()
    Dim rs As DAO.Recordset
    Dim intcount As Integer

    On Error GoTo ErrorHandler
    Set rs = CurrentDb.OpenRecordset("SELECT * FROM Master_Log WHERE Order_number = " & Combo63.Value & "", dbOpenSnapshot)
    intcount = CurrentDb.Recordsets.Count
    Debug.Print intcount
    For Each rs In CurrentDb.Recordsets
    Debug.Print "Open recordset: " & rs.NextRecordset
    Next rs
    ErrorHandler:
    MsgBox "Error No: " & Err.Number & "; Description: " & _
    Err.Description
    Exit Sub
    End Sub

  2. #2
    rzw0wr is offline I will always be a newbie
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Indiana
    Posts
    479

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 06-04-2012, 07:17 PM
  2. Replies: 1
    Last Post: 02-13-2012, 06:18 AM
  3. Replies: 1
    Last Post: 01-20-2012, 04:31 PM
  4. problem displaying data in report
    By dreamweaver547 in forum Reports
    Replies: 4
    Last Post: 10-15-2010, 04:26 PM
  5. Best way of displaying and printing records?
    By Orabidoo in forum Access
    Replies: 1
    Last Post: 05-11-2009, 10:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums