Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22
  1. #16
    wilpeter is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    18
    Quote Originally Posted by June7 View Post
    The subform is bound to the lookup table tblCourses. If you change data in the subform you change it in that table.
    The values in tblCourses are set by committee before each semester and cannot change. Course #2124 in Semester 134 will never be changed. Next year, #2124 will be in a different Semester and have a different set of fees.

    Quote Originally Posted by June7 View Post
    You need to input the desired value into the main form Course Fee textbox which is bound to field in tblRegister.
    Yes, the only input form is REGISTRATIONS which feeds tblRegister. All other tables and forms are support/lookups.

    Quote Originally Posted by June7 View Post
    You can use code to populate that textbox with the standard fee and it will be editable. Right now I don't see that box get populated.
    That's the $64,000 question: How to populate that field!


    Unless something happened when it was Zipped, the field should (presently) reflect the Member Fee because it is directed to by a macro.

    Quote Originally Posted by June7 View Post
    Include the CrsFee field as a column (can be hidden) in the course combobox then code in the combobox AfterUpdate event can set value of the textbox be referencing combobox column. I only use VBA:

    Me.CrsFee = Me.RefNb.Column(2)
    I'll have to examine this and see if I understand it. Tomorrow I may be fresher!
    Thanks for your input.

  2. #17
    wilpeter is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    18
    OK, examined and tested it. I added CrsFee (from tblCourses) to the RefNb combo box. Then I set the After Update property of the CrsFee to =RefNb.Column(2).
    It doesn't use the correct value and worse, it remains when the next Registration record is called. It may be, after all, that what we had for 9 years has disappeared!
    Thanks for the hope, though.

  3. #18
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    The code should be in the AfterUpdate event of RefNb combobox, not textbox. In the combobox AfterUpdate event property select [Event Procedure]. Click the ellipses (...) to open the VBA editor. Type code in the procedure.

    I think macro can also accomplish.
    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.

  4. #19
    wilpeter is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    18
    Well ain't that somethin' for sore eyes! An AfterUpdate [Event Procedure] to the RefNb Combo Box! Yes, it works fine and thank you June7 for your patience with me. Makes we wish I'd learned Code back when we converted our db2 DOS program to Windows. Too late for me now, I'm 75. Have a great day!

  5. #20
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Never too late! I'm 59+ and back in school learning networking tech.
    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.

  6. #21
    wilpeter is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    18
    Meanwhile, is there a way to chain (in the Event Procedure/code) a GoToControl to follow that after update code?

  7. #22
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    I use SetFocus method.

    Code in the AfterUpdate to set focus on a control.

    Me.controlname.SetFocus
    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.

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

Similar Threads

  1. Replies: 0
    Last Post: 07-31-2013, 08:08 AM
  2. Automatic calculation of table field (A2003)
    By GraeagleBill in forum Programming
    Replies: 9
    Last Post: 04-20-2013, 12:06 PM
  3. Replies: 2
    Last Post: 12-30-2011, 07:19 PM
  4. Replies: 3
    Last Post: 10-17-2011, 10:36 PM
  5. Replies: 3
    Last Post: 10-03-2011, 02:33 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