Results 1 to 3 of 3
  1. #1
    mp3909 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    154

    Why my rs.field is not printing out what I see in my Query result


    I have a built a Query in Access that when it runs, it produces the below table:

    Click image for larger version. 

Name:	Capture.PNG 
Views:	6 
Size:	28.4 KB 
ID:	37731

    I have written a code in VBA that opens this table as a recordset.
    When I loop through the field "SourceFile" and debug.print its contents, it does not show the part ".csv".
    So for example, it will only show "Trade_Exposre_Report_Stage2_MUSE_20190304".

    Why is this?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,618
    No idea.

    Post the VBA and query SQL statement.

    If you want to provide db for analysis, follow instructions at bottom of my post.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    mp3909 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    154
    Hey,

    Its ok, I just had to close and reopen the db.

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

Similar Threads

  1. Replies: 3
    Last Post: 12-28-2017, 09:32 AM
  2. Replies: 1
    Last Post: 03-20-2017, 10:56 AM
  3. Replies: 3
    Last Post: 01-04-2015, 03:00 PM
  4. Replies: 2
    Last Post: 05-30-2012, 07:53 AM
  5. Query result based upon two field conditions
    By diane802 in forum Access
    Replies: 35
    Last Post: 01-08-2010, 06:31 PM

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