Results 1 to 2 of 2
  1. #1
    mike02 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    245

    creating new fields from form

    Hey,


    I have my table set up as this:

    ID(PK)
    CompanyID(FK)
    CallDate
    Comments (Memo)

    What i am trying to do is everytime I make contact with a company i have to make notes. and i want to keep them in my DB. How can i set up my form to
    have a button(Forexample) saying New Note, and then a new field, with corresponding date.

    I have thought of a table for each Company, but then I would have hundreds of tables. Any Ideas?

    Thanks,

  2. #2
    LillMcGill is offline Dagny fan
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2010
    Location
    Southern USA
    Posts
    70
    I would usually approach this with a main form (Customers), and a subform (Notes), but an alternative is to have a button on the Customers form that opens the Notes form to the correct CustomerID. Many people will tell you to use VBA, but macros in version 2010 are awesome and much easier to master.

    Create a button on the Customers form. Go to the OnClick property, click the Build button (has 3 dots on it), and choose Macro builder. Choose the action OpenForm. In the arguments for the action, you will specify the name of the form. You will also have to specify the correct customer record (the "correct record" is the one that is currently displayed on the Customers form).
    It will look something like this, depending on the name of your Customers form: [CustomerID]=[Forms]![frmCustomers]![CustomerID]

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

Similar Threads

  1. Creating a report using the same fields
    By clawschieff in forum Reports
    Replies: 3
    Last Post: 04-17-2013, 12:48 PM
  2. Creating Required Fields on a form
    By topp in forum Access
    Replies: 4
    Last Post: 06-27-2012, 03:20 PM
  3. Creating Dummy Fields in a Report
    By Whehir in forum Reports
    Replies: 2
    Last Post: 06-13-2012, 05:45 PM
  4. Creating a unique index on two fields
    By Paul H in forum Database Design
    Replies: 3
    Last Post: 11-03-2011, 10:15 AM
  5. Creating Custom Fields
    By RudeRam in forum Queries
    Replies: 3
    Last Post: 08-01-2011, 01:09 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