Results 1 to 12 of 12
  1. #1
    thracken is offline Novice
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    13

    Using a form to add new infromation to a data table for access 2013

    Hello,

    I have tried to use the form wizard make a form to input new information into my data sheet with old information that I need to keep and update with new information. How do i get the form to enter new information, if i can get it to add the first name and last name to the sheet then i should be able to get the rest of it fixed. The table below is somewhat like i need, if i don't have a last name it will not print anything. I am not sure how to write a lot of this that is why i was using the wizard. What field properties would i need to change and to what ? and be able to save it each time i enter new information ?




    first name last name customer name phone number
    John Doe John Doe 111-222-3333
    Tom 111-223-3333

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    What is the 'old' data?

    Should not have a field that combines name parts. Name parts should be in separate fields.

    Don't really understand what the issue is. The wizard should have created a form bound to table and textboxes bound to fields. Type data into textboxes and it is saved directly to table.
    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.

  3. #3
    Demerit's Avatar
    Demerit is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Nov 2013
    Posts
    125
    Welcome to the forum Thracken!

    Just like June7 has said, Access does the majority of the job for you when you use the Form Wizard. Every control on the form is automatically bound to the table that was used to create the form. What you need is just to include an "OK" button on your form that saves the record and returns a blank form so you can continue adding data to your table.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    Can create an "OK" button with code to move to a new record row or use the intrinsic Access navigation features.

    Is the form in Single, Continuous, or Datasheet view?
    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.

  5. #5
    thracken is offline Novice
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    13

    form

    Quote Originally Posted by June7 View Post
    Can create an "OK" button with code to move to a new record row or use the intrinsic Access navigation features.

    Is the form in Single, Continuous, or Datasheet view?
    when i was using the wizard it would pull old information and it would not start a new record and it would save over the old information and pull the next line of old information.

    the form is a single form that i will keep using to put "new" customers on the list and the list is an data sheet ( the data sheet has customer names, phone numbers, city, state, etc. oh and of course the "ID" field with the auto number as the key ) and all my information comes from 1 data sheet that i imported from excel

    As for the names i watched a video and it showed me how to put first and last names into a new field together with a space between them, but if i did not have the last name it would not put any information in the full name field, but i dont have to use it i can just delete it.

    the "OK" button sounds good i will try and see if i can get it to work

    I think i answered the questions asked and I am new to access and it does have a lot of features i have to learn and thanks for your help

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    The form is Single or Continuous or Datasheet or Split so not sure what you mean by 'the list is an data sheet'.

    Access 2010/2013 has a field type Calculated which you might have been using and I misunderstood. Regardless, the calc should show first name even if last name not entered, and vice versa.
    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.

  7. #7
    Perceptus's Avatar
    Perceptus is offline Expert
    Windows 7 64bit Access 2003
    Join Date
    Nov 2012
    Location
    Knoxville, Tennessee
    Posts
    659
    Does the bottom of the form have navigation controls on them? Check this page http://www.gcflearnfree.org/access2007/6.3 the navigation buttons should give you the ability to do what you need.

  8. #8
    thracken is offline Novice
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    13
    the form is single as it only does one record at a time then I have to start over with new information and I found the new file control on the bottom of the form to start a new record.

    and with the names it dose not put both first and last name in it if one is blank, maybe i need to add " " ( a space to the settings ) so it will pick that up also

  9. #9
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    Need space if don't want the name parts to run together.

    [FirstName] & " " & [Last Name]

    Should display name part(s) entered into record.
    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.

  10. #10
    thracken is offline Novice
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    13
    is there a way i can use [firstname]+" "+[lastname] and have last name used if it is just a space ( no last name )

  11. #11
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    The issue is use of + for concatenation. Use & instead.
    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.

  12. #12
    thracken is offline Novice
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    13
    oh that worked out perfect !!! thanks a lot

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

Similar Threads

  1. Replies: 6
    Last Post: 10-19-2015, 06:07 PM
  2. Replies: 6
    Last Post: 12-12-2013, 11:44 PM
  3. Outlook 2013 + Access 2013 + HTML
    By Yann63 in forum Programming
    Replies: 2
    Last Post: 11-26-2013, 02:39 PM
  4. Replies: 15
    Last Post: 11-18-2013, 10:49 PM
  5. Replies: 3
    Last Post: 11-04-2013, 07:40 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