Results 1 to 2 of 2
  1. #1
    Grimm is offline Novice
    Windows 7 Access 2007
    Join Date
    Jul 2010
    Posts
    1

    Create form that manages Players.

    Hi All. I had a couple questions. I was trying to create a form that has a List box with a list of players from a table of a player pool. My plan was to go through that list. Then when i select a player from the list. I can add it to the blank text boxes above.



    Another question i had, was could i create a button to trigger a new set of blank boxes to allow for the addition of another player much like I mentioned above.

    To make it clear how it looks like, here is a picture. Thanks.

    http://www.mediafire.com/i/?c2ikwjvw9bnekd4

  2. #2
    maximus's Avatar
    maximus is offline Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    Suppose I have a list Box List1 and TextBox1 to assign the value of the ListBox to the text Box I would put the code on the afterUpdate event:

    Me.Text1=Me.List1

    remember while assigning the value of the list box to a another form control like TextBox, Combobox you have to remember that the value of the first column is assigned;

    Example the RecorSource of a List Box is a query with Column EmployeeID and EmployeeName. The EmployeeID is the First Column so in the case when you select a record in the list box the value of EmployeeID is assigned to the Text box to assign the EmployeeName that is the second column you have to give reference to Column Index:
    Me.Text1=Me.List1.Column(1)

    Remember the Column Index starts from 0 that is the first column is 0 the next 1

    to open a new record use this code in a command button

    DoCmd.GoToRecord , , acNewRec

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

Similar Threads

  1. How to create a Password Form
    By heman85 in forum Forms
    Replies: 1
    Last Post: 07-07-2011, 11:49 AM
  2. Create multiple records with 1 form?
    By bergjes in forum Forms
    Replies: 4
    Last Post: 04-14-2010, 06:16 AM
  3. Trying to create multiple records from a form
    By ed_hollywood in forum Forms
    Replies: 4
    Last Post: 04-02-2010, 10:57 PM
  4. create calendar form
    By nwalke in forum Forms
    Replies: 0
    Last Post: 06-30-2009, 10:35 AM
  5. Replies: 1
    Last Post: 03-02-2009, 11:54 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