Results 1 to 4 of 4
  1. #1
    JVHLK is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Dec 2018
    Posts
    2

    Consulting a table and changing the content and place the new content back in the table

    Hi, I want to use a macro to do the following. I have a table with data (info about different, a lot of persons...). The first column is a unique number (called 'number') referring to the person. Now I want to use a macro to consult the table by using the 'number'. On a second page I fill in the 'number' and I want that a macro consults the table and gives al the information of the corresponding person on the second page. On this second page I want to do some changes on the information of the person and then I want to put back the corrected information in the table.
    What I don't know is how to find the correct row with the information of the person with a certain 'number', both for consulting and re-writing the changed values. I could do it with (advanced search, but I find this not a clean solution) I tried also with 'advanced filter' but this also did not work properly. (relative reference...)


    Anybody experience with this.
    Thanks a lot.
    I'm an amateur in recording macro's and no experience with VBA.

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,397
    I don't use macros (and they can't be recorded an Access anyway) and for what you want to do, sounds like all you need is a form. Access is not really intended for entering data directly into tables. Suggest you look at a few templates and see how they work. It will also help you to understand the terminology a bit better.

  3. #3
    JVHLK is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Dec 2018
    Posts
    2
    Thanks for your reaction. I think I'm wrong. I ment to do this in excel. is it possible in excel?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    I am sure it is but this is not an Excel forum and maybe not best place to ask this question.

    I use Excel macro recorder to generate some rough VBA code then modify as I need to automate.

    But why not migrate over to Access?
    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. Replies: 10
    Last Post: 04-23-2018, 02:13 PM
  2. Table content and relationships help
    By RichardR in forum Database Design
    Replies: 5
    Last Post: 10-22-2016, 02:04 AM
  3. Default Value from Table Content
    By jaimefry3 in forum Access
    Replies: 6
    Last Post: 03-07-2016, 11:49 AM
  4. VBA Doesnt add content of subform to table
    By shabbaranks in forum Programming
    Replies: 14
    Last Post: 12-16-2011, 03:47 AM
  5. Replies: 1
    Last Post: 12-01-2010, 11: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