Results 1 to 2 of 2
  1. #1
    mccrimmon is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Feb 2010
    Posts
    13

    Database Help

    I have decided to go with bound forms due to the nature of the data and everything seems to be working fine, however, I was wondering if anyone could help with a few things.




    On my form frmAddActivity, I want it so that when I click on page 2 the First Profile Due Date and Second Profile Due Date textboxes are updated if the Activity Type is a launch. These dates are calculated in query uvw_Activities. How do I go about achieving this?


    My second question is......on form frmViewActivity I want to have it so that when an Activity Reference is selected all the associated funds with that Activity Reference (stored in ActivityFunds table) are populated in the subform as read only. Any suggestions on how to achieve this?

    Example database attached.


  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
    It is possible with coding to make one form serve for both editing and viewing data.

    You can use a DLookup or include the query in the form's record source. Use an IIf expression in the textbox to display the value if Launch is Activity Type.

    I tried to open uvw_Activities and get datatype mismatch error. Syntax for the DateAdd is wrong. Should be:
    DateAdd("d",[tier1],[activitydate])
    DateAdd("d",[tier2],[activitydate])
    Day is default when calculating dates so this also works:
    [tier2]+[activitydate]

    Need to set the Data Entry property to No. Set the AllowEdits property to No on the main form or the subform Or use code to set this property.
    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. Database Design for Specification Database
    By khwaja in forum Database Design
    Replies: 2
    Last Post: 11-24-2011, 03:58 AM
  2. Replies: 20
    Last Post: 08-08-2011, 01:34 PM
  3. Replies: 3
    Last Post: 05-15-2011, 10:52 PM
  4. Replies: 1
    Last Post: 11-03-2010, 10:41 AM
  5. Replies: 4
    Last Post: 08-12-2010, 08:38 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