Results 1 to 12 of 12
  1. #1
    rob0829 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Sep 2017
    Posts
    9

    Access 2010 Forms: VBA

    Hello,

    I've done a fair bit of searching online and I can't come to a solution for the problem I'm encountering.

    I have a Form that is pulling data from a sorted Query linked to a Table. I have a Yes/No box in the form called "Completed". When I check that box I want the current date to be populated in a field called "First" all the way back through to the Table.

    The solutions that I have found online are telling me to use VBA in "After Update" of completed on the Property Sheet but I can't seem to figure out how to link to VBA here, it seems like my only options in Access 2010 are Macros.

    Any help would be greatly appreciated!

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    rob0829 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Sep 2017
    Posts
    9
    Thanks for the reply, however it doesn't open the VBA Editor like the link suggests. This is what I'm seeing, am I doing something wrong?

    Click image for larger version. 

Name:	Screenshot.jpg 
Views:	10 
Size:	212.5 KB 
ID:	30499

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Is this a web database? VBA is not available to web objects. You typed [Event Procedure] instead of selecting from dropdown because it was not in the dropdown?
    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
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    I'll get out of the way.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  6. #6
    rob0829 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Sep 2017
    Posts
    9
    Yes this is a web database, I guess that explains my troubles.....does this mean I'm out of luck? or do I have any other options on doing what I'm attempting?

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Don't quite understand. Why don't you just enter a date into a date/time field? Is the date field in this form's RecordSource? There is a SetValue method in macros. If the check is removed, do you want the date removed?

    Do you really need web db?
    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.

  8. #8
    rob0829 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Sep 2017
    Posts
    9
    I'm trying to create a database that will be shared among various different users. Items need to be approved by several different people. I was trying to create a form where each person could see what is currently pending their approval and with the simple click of a box they can approve the item and it automatically tracks the date in which they did so.

  9. #9
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    If you have an internal network, a web database is not necessary for that. How do you intend to deploy on web - SharePoint?
    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
    rob0829 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Sep 2017
    Posts
    9
    We have an internal network as well as Sharepoint. My intention was to use Sharepoint as it would be easier to get the proper individuals access as well as the use of Sharepoint is being pushed company wide.

  11. #11
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Then you will be limited to macros behind the web objects. You might find TempVars useful so suggest you research them.
    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
    rob0829 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Sep 2017
    Posts
    9
    Ok, thank you for the guidance, I appreciate it!

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

Similar Threads

  1. VBA and MS Access 2010 forms
    By Lou_Reed in forum Access
    Replies: 1
    Last Post: 07-11-2016, 01:24 PM
  2. Access 2010 Forms
    By Thomas. in forum Access
    Replies: 3
    Last Post: 05-14-2015, 04:21 PM
  3. Replies: 3
    Last Post: 10-23-2013, 08:11 AM
  4. Forms in Access 2010
    By GaryLW in forum Forms
    Replies: 3
    Last Post: 03-22-2013, 07:11 PM
  5. Access 2010 Sub forms
    By jordanturner in forum Access
    Replies: 1
    Last Post: 10-06-2010, 06:55 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