+ Reply to Thread
Results 1 to 4 of 4

Vba to retrieve Access recordset no longer works after additional columns added

  1. #1
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,293

    Vba to retrieve Access recordset no longer works after additional columns added

    Hi all
    I have been using this code to retrieve and filter a recordset from Access. At present I have moved over to a test file while I add features to improve reporting.
    This code was not what I was working on and I only noticed it after a few days so cannot pinpoint what the change was.

    The Table 'Pending' has had 5 extra columns added but all at the end so no format change
    The Field 'Delivered' has a simple X to denote delivered so this listbox views pending orders
    I increased the number of columns in the listbox but now find that no records are retrieved but if I aim back at original Access database all works fine

    Please Login or Register  to view this content.
    I cant think why the records can no longer be retrieved as they do exist
    Any ideas??

  2. #2
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,293

    Re: Vba to retrieve Access recordset no longer works after additional columns added

    I changed code to this and now can see the records
    Please Login or Register  to view this content.
    now though I cant find a way to close the connection and use the records remotely.

    What is the difference between 'Cursor Location' and 'CursorType'??
    Last edited by nigelog; 05-25-2022 at 03:47 AM.

  3. #3
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,293

    Re: Vba to retrieve Access recordset no longer works after additional columns added

    Changed text in red and all now seems good

  4. #4
    Registered User
    Join Date
    07-22-2022
    Location
    NYC USA
    MS-Off Ver
    2010
    Posts
    1

    Re: Vba to retrieve Access recordset no longer works after additional columns added

    interesting information

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. After opening a recordset from an ADO connection I can no longer insert new records?
    By dmasters4919 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-02-2015, 08:12 PM
  2. Access form works with access Viewer but not full version of Access?
    By Shanyn in forum Access Tables & Databases
    Replies: 1
    Last Post: 10-22-2014, 01:14 PM
  3. User added buttons no longer working
    By capt_tony in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-11-2013, 11:42 AM
  4. Recordset Query : how to open and retrieve DB
    By superkid in forum Access Programming / VBA / Macros
    Replies: 3
    Last Post: 08-27-2009, 05:31 PM
  5. AgeFunc No Longer Works
    By jhrBanker in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-29-2009, 02:57 PM
  6. Replies: 2
    Last Post: 07-01-2008, 09:19 AM
  7. [SOLVED] How do I retrieve the column names in a ADODB recordset from MS SQ
    By MChrist in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-07-2005, 09:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1