Results 1 to 13 of 13
  1. #1
    fabiobarreto10 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Dec 2011
    Posts
    169

    text box to see changed data for a given field

    gentlemen,



    I have a subform with the following fields: step, the scheduled date, time and date performed and rescheduled counter. I have an audit table which is the history of all user actions. I tried that when I click on the rescheduled date of a certain step, show a text box in the table data audit this specific field.
    I'm having trouble writing vba code and which event.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Do you want to display one value (such as count of records) or all the records.

    Using a textbox to display data from multiple records requires VBA code to concatenate the data. A listbox or a subform can easily list records. A listbox can have multiple columns - a column for each field of the RowSource, textbox does not. Check this tutorial http://datapigtechnologies.com/flash...combobox3.html

    Sounds like need to use the Click or OnFocus event of a textbox to open another form that will display the records filtered to the selected step ID.
    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
    fabiobarreto10 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Dec 2011
    Posts
    169
    I think a subform would solve. It is possible that it is in the same form? That is, when the user clicks on the rescheduled date field, some specific steps to show the sub, only the past history (date, time, user history and dates) of the rescheduled date of the step?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    This tutorial shows how to link a subform to another subform, both on same main form http://www.fmsinc.com/MicrosoftAcces...edSubforms.asp
    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.

  5. #5
    fabiobarreto10 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Dec 2011
    Posts
    169
    I create a subform, and the wizard did not appear, was not fits on. By linking the fields father and son, appeared a message box: Could not create a link between forms not fits on.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    No, can't link a subform to subform by conventional method. The wizard won't help. Did you review the tutorial?
    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.

  7. #7
    fabiobarreto10 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Dec 2011
    Posts
    169
    June7, I understood the tutorial. I lowered the seat, and made the example of a site related to form. It worked ok.
    As my form has different characteristics that you would like to confirm some things.

    I need to create a form, only the table fields PassosStatus?!
    Then create a form with the fields of audit table table PassosStatus?!
    I need to make a new form, with the combos ...?! or can adapt to the form that is ready? I tried to adapt but some errors occurred.
    Thank you.

  8. #8
    fabiobarreto10 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Dec 2011
    Posts
    169
    June7 apparently managed to do.
    For some reason, when trying to insert a new step, the following message appears:
    You can not add or change records, it is necessary that he has a related record in table 'TblProduto'. I could not identify the error. Can you help me?

  9. #9
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    The Master/Child link properties of the subform container control holding frmTblPassosStatus are not set.
    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.

  10. #10
    fabiobarreto10 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Dec 2011
    Posts
    169
    Well, I defined the relationship as the tutorial, and sub child (or grandchild) is functioning normally. See the registration. I am having trouble registering directly on the form. I have to open the table analyst, and register an analyst. Then, Company ...

  11. #11
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    You did not set the Master/Child links properties of the subform container control holding frmTblPassosStatus.
    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.

  12. #12
    fabiobarreto10 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Dec 2011
    Posts
    169
    June7 apparently succeeded. You were right, just put CodProduto was missing father and son in the properties of the subform. It seems that is running fine. I'll mark the post as solved and open another topic to another problem I'm facing. As you already have some idea of ​​my db, I can direct you to the topic?

  13. #13
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    I will look for the new thread.
    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: 7
    Last Post: 03-22-2011, 10:36 AM
  2. keeping current entry in field until changed
    By Chazcoral in forum Forms
    Replies: 16
    Last Post: 09-09-2010, 12:01 PM
  3. Replies: 7
    Last Post: 05-29-2009, 04:27 PM
  4. Find out changed data
    By Papote in forum Programming
    Replies: 1
    Last Post: 04-27-2009, 08:19 PM
  5. Replies: 4
    Last Post: 04-01-2009, 11:48 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