Results 1 to 2 of 2
  1. #1
    DMT Dave is offline VIP
    Windows 10 Access 2016
    Join Date
    May 2018
    Posts
    1,365

    Find Excel Row Number

    Hi guys, is there a way of updating records on an existing excel worksheet from a recordset but each row in Excel has got the same detail as my recordset ? ie;

    Excel column (1)
    Row 22 is SO-123
    Row 19 is SO-345
    Row 37 is SO-678
    Row 14 is SO-890

    Excel column (6) (delivery Date)
    Row 22 = 02/01/19 (SO-123 taken from my recordset)
    Row 19 = 03/01/19 (SO-345 taken from my recordset)

    recordset finds the SO number row and adds the delivery date taken from recordset ?

    Is this easy to achieve ?

    Would I need to add a check box to database and tick each SO number to find the Excel row ? as I may need to update 30 per day ?

    Or can I loop through and still update the relevant excel row with one click ?



    Thanks in advance

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Can probably use Find to activate row.

    Loop through recordset, Find row, set cell value.

    Use macro recorder to generate some VBA for the Find. Modify code as needed.
    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.

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

Similar Threads

  1. how to find positive number
    By adnancanada in forum Queries
    Replies: 4
    Last Post: 05-31-2018, 05:30 AM
  2. Find Last Number Of Document
    By zozzz in forum Forms
    Replies: 2
    Last Post: 09-04-2015, 10:50 AM
  3. Find/Display Next Available Number
    By jabrjo in forum Access
    Replies: 4
    Last Post: 11-20-2014, 12:51 PM
  4. Link to Excel; number of records change and Excel can't update
    By crobaseball in forum Import/Export Data
    Replies: 5
    Last Post: 03-22-2014, 11:40 PM
  5. Find Max number
    By NISMOJim in forum Programming
    Replies: 11
    Last Post: 05-17-2013, 03:01 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