Results 1 to 4 of 4
  1. #1
    joemills62 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    21

    OPen Form to add data

    HI all



    Im am sure this must be simple

    I have a client list amd i want to add activities to it.
    1. the form is called company list, showing company name (text Filed). i have an add button to add data to the activities table using a form called activities,

    This work fine, but i want the field in the activities form to be pupolated with the company name, the field in the activities table is called companyid (text)

    I have tried the code

    DoCmd.OpenForm "activity", acNormal, , "[companyid] = " & [company list]![company name], acFormAdd, acWindowNormal

    Any help

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    It sounds like you should handle that in the RecordSource of the Activities Form with a Join. Do you really have [companyid] set to [company name]?

  3. #3
    joemills62 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    21
    Many Thanks for that,
    no the company id is not linked anywere ?,
    but i did mead compaid = idno ??, which is a numercial number

    not sure how do a join, and how that would work ?

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You would use the Relationships menu under Database Tools to effect the join.

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

Similar Threads

  1. Button to open on specific Data
    By glasgowlad1999 in forum Access
    Replies: 6
    Last Post: 05-15-2011, 03:46 PM
  2. Replies: 5
    Last Post: 03-03-2011, 03:56 PM
  3. Replies: 9
    Last Post: 09-19-2010, 09:18 PM
  4. Replies: 2
    Last Post: 02-26-2010, 08:14 AM
  5. Data migration open source tool
    By pgdabler in forum Import/Export Data
    Replies: 0
    Last Post: 10-07-2009, 08:46 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