Results 1 to 4 of 4
  1. #1
    Stika is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2012
    Posts
    18

    Update record form

    Hi,

    Im having all kinds of troubles with this form...

    I have a table:
    ID
    Name
    Street


    Suburb
    State
    Postcode
    Carrier
    Freight

    I've made a form that drags the record out by selection of a combobox(Name) But everytime I Select something it saves it as a new record and then when I Change something in it, It saves it as another record
    My After_update code for the Combo Box
    Private Sub Text17_AfterUpdate()
    Me.Text19 = Me.Text17.Column(1)
    Me.Text21 = Me.Text17.Column(2)
    Me.Combo25 = Me.Text17.Column(3)
    Me.Text27 = Me.Text17.Column(4)
    Me.Combo29 = Me.Text17.Column(5)
    Me.Combo15 = Me.Text17.Column(6)

    I do have a query running...Ive attached a pic.


    Im a little bit lost...any help would be appreciated
    Attached Thumbnails Attached Thumbnails stuck.png  

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Controls used as input for search criteria must be unbound (no ControlSource), otherwise you are editing record.

    Why the code to populate controls?
    Last edited by June7; 12-16-2012 at 02:31 PM.
    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
    Stika is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2012
    Posts
    18
    Im not very good at this...im trying the best I can...if there is a better way to get the controls to show up that would be great

  4. #4
    Stika is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2012
    Posts
    18
    I Figured out how to do it thanks to this link you provided earlier in another thread

    http://datapigtechnologies.com/flash...tomfilter.html

    Thanks

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

Similar Threads

  1. Replies: 2
    Last Post: 10-10-2012, 07:01 AM
  2. How quickly does a Form record update?
    By JRINC in forum Forms
    Replies: 3
    Last Post: 10-12-2011, 02:19 PM
  3. same form for new and update record
    By lizu in forum Forms
    Replies: 3
    Last Post: 06-20-2011, 08:34 AM
  4. Single Record Update Query from a Form
    By Steven.Allman in forum Access
    Replies: 0
    Last Post: 03-30-2011, 09:34 AM
  5. Update new record when leaving form
    By jpkeller55 in forum Access
    Replies: 6
    Last Post: 09-08-2010, 06:35 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