Results 1 to 2 of 2
  1. #1
    jobrien4 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    20

    Setting value of hidden fields when adding new field

    I have a form (frm_Parts) where the user will input part number, reivision number, and customer number and the record of that part comes up in the form. If this part has a bevel operation, a button with "Show Bevel Info" appears.



    Upon clicking that button, frm_BevelInfo is launched in a new tab using an OpenForm macro (where the part number, revision number, and customer number from the first form equal the same fields in frm_BevelInfo). I set this table up as multiple items tabular form, because the same part can have multiple bevel operations that I want to all show up at once.

    Here is my problem/what I want to accomplish. If the part from the frm_Parts doesn't have a bevel operation already, when frm_BevelInfo is launched, there is no way to add a new field.

    Also, I want to have the Part Number, Reivision Number, and Customer Number hidden on frm_BevelInfo since this info is redundant to frm_Parts. However, when the user clicks an "Add New" button, I want to have these fields set to whatever the info is in frm_Parts.

    I tried to use a
    GoToRecord (New),
    SetValue - [PartsNumber] - Forms![frm_Parts]![PartNumber]

    But it doesn't work. Anybody have any advice?

  2. #2
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Try:

    Code:
        DoCmd.GoToRecord , , acNewRec
    
        Me.PartsNumber = Forms![frm_Parts].[PartNumber]

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

Similar Threads

  1. Adding 2 fields together
    By Craig Spencer in forum Access
    Replies: 2
    Last Post: 04-08-2011, 02:10 PM
  2. Replies: 0
    Last Post: 01-18-2011, 07:09 AM
  3. question about hidden fields and checkboxes
    By Nokia N93 in forum Access
    Replies: 2
    Last Post: 11-22-2010, 07:31 AM
  4. Setting fields visible/invisible
    By col5473 in forum Forms
    Replies: 1
    Last Post: 09-17-2010, 09:14 AM
  5. Setting a field to be dependent on another
    By CushingMT in forum Forms
    Replies: 0
    Last Post: 11-19-2008, 11:51 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