Page 2 of 2 FirstFirst 12
Results 16 to 24 of 24
  1. #16
    davegri's Avatar
    davegri is offline Excess Access
    Windows 11 Access 2019
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,742

    Mer-davegri-v01.zip

    As I suggested, and it's easy to do. Uses embedded macro created by wizard, your existing standalone macro not needed.

    Click image for larger version. 

Name:	AddWiz.png 
Views:	18 
Size:	19.7 KB 
ID:	51936

    Click image for larger version. 

Name:	Add.png 
Views:	18 
Size:	9.4 KB 
ID:	51937

  2. #17
    Merrill B. is offline Novice
    Windows 10 Access 2016
    Join Date
    Jul 2024
    Posts
    10
    I do that but you need to reopen the form out of the macro and it works but as an extra manual step.

  3. #18
    Merrill B. is offline Novice
    Windows 10 Access 2016
    Join Date
    Jul 2024
    Posts
    10
    There are two tables involved and one form and information is transferred from one table to another then to the form where data entry is completed using a written document that has information on it to be entered. I also note that one table is a control table that feeds basic information to another before the form (representing both tables) is complete. Also it is easier to scan a table in datasheet view then to scroll 200 files in form view for one that meets a specific criteria. A query would be very complicated to construct in this case as there are forty fields involved and multiple criteria to determine if a record is to be included.

  4. #19
    Merrill B. is offline Novice
    Windows 10 Access 2016
    Join Date
    Jul 2024
    Posts
    10
    Thank-you for your general comments. There are two tables involved and one form and information is transferred from one table to another then to the form where data entry is completed using a written document that has information on it to be entered. I also note that one table is a control table that feeds basic information to another before the form (representing both tables) is complete. Also it is easier to scan a table in datasheet view then to scroll 200 files in form view for one that meets a specific criteria. A query would be very complicated to construct in this case as there are forty fields involved and multiple criteria to determine if a record is to be included. Forms definitely work with one record or portion thereof at a time but tables present the non-academic opportunity to view data in a datasheet which to the masses still has value.

  5. #20
    davegri's Avatar
    davegri is offline Excess Access
    Windows 11 Access 2019
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,742
    Quote Originally Posted by Merrill B. View Post
    Thank-you for your general comments. There are two tables involved and one form and information is transferred from one table to another then to the form where data entry is completed using a written document that has information on it to be entered. I also note that one table is a control table that feeds basic information to another before the form (representing both tables) is complete. Also it is easier to scan a table in datasheet view then to scroll 200 files in form view for one that meets a specific criteria. A query would be very complicated to construct in this case as there are forty fields involved and multiple criteria to determine if a record is to be included. Forms definitely work with one record or portion thereof at a time but tables present the non-academic opportunity to view data in a datasheet which to the masses still has value.
    That's colossal requirements creep far beyond your original request. Did you really expect a suitable proposal based on that original limited disclosure? I almost think this is some kind of prank.

  6. #21
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,573
    Plus there is such a thing as a datasheet form.
    Entering data directly into a table means little validation.
    He'll!, even I do not enter data to a table directly. Even for the dbs for my personal dbs.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  7. #22
    Join Date
    Jun 2022
    Posts
    28
    Quote Originally Posted by Merrill B. View Post
    Thanks for analytical response and clear response. I note that the macro instructs the table to open first at which point there is an edit (addition of a record) "before" the form opens. If correct then it is not simultaneous occurence and the instruction to open the form (as the lattter instruction), should have the form reflect the updated table. Do you agree and if so, can you offer a tested solution that demonstrates the form showing the same number of records as the table without refeshing manuallyl?
    Macros just plow through their code one step after the next, there is no feedback to indicate that one step is completed and it's OK to move to the next. Most of the time this is fine as the steps don't take long. For long operations, especially ones that require user input, the macro just moves to the next step as soon as it finishes starting the current step (not the same thing as waiting for the step to finish). It has no way to know if the step was completed. VBA doesn't really have an await operator either, but there are a few workarounds.

    In this case you would probably be better served by doing all of your data entry on the form and forget opening the table. Set the form for Data Entry or add some VBA when the form loads that moves to a new record. You could even convert the form to a datasheet or split form if you prefer entering data in the datasheet like you were in the table.

  8. #23
    Merrill B. is offline Novice
    Windows 10 Access 2016
    Join Date
    Jul 2024
    Posts
    10
    I consider my Thread closed so thanks to all the participants who responded positively to my small access problem related to the opening of table and forms within a macro context. I have simply developed and added on a second macro and assigned a key to run it. I had condensed the problem in my threads to the main issue. And yes forms are useful but they owe their existence to properly constructed tables. Sometimes there is elegance in simplicity.

  9. #24
    davegri's Avatar
    davegri is offline Excess Access
    Windows 11 Access 2019
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,742
    Quote Originally Posted by Merrill B. View Post
    I consider my Thread closed so thanks to all the participants who responded positively to my small access problem related to the opening of table and forms within a macro context. I have simply developed and added on a second macro and assigned a key to run it. I had condensed the problem in my threads to the main issue. And yes forms are useful but they owe their existence to properly constructed tables. Sometimes there is elegance in simplicity.
    Thanks a lot for ignoring solid advice and wasting all our time. You are on my ignore list.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 10
    Last Post: 08-14-2023, 08:13 AM
  2. Replies: 5
    Last Post: 01-24-2015, 12:59 AM
  3. Replies: 7
    Last Post: 11-23-2013, 07:16 AM
  4. Replies: 9
    Last Post: 09-16-2011, 03:52 PM
  5. Replies: 1
    Last Post: 08-27-2010, 05:16 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