Results 1 to 2 of 2
  1. #1
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496

    Combo box warning before update

    I want to have an option yes no popup that asks if the user wants to change the value in a field using a combo box but if they choose no the combo box value goes back to the original chosen value (which happens to be the row with the same ID as the form id


    the form field ID is 1234

    the control is unbound

    the form current event loads the field as the selection for the combo box

    if the combo box is moved to another value it changes the field value accordingly .column(0) and the form refreshes to match.

    if the user selects no in the popup then the combo box goes back to the original 1234 or whatever it happens to be

    best way to do this?

  2. #2
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    ok so

    I made a public var

    then I did

    Code:
    Private Sub Combo_TheatreDate_AfterUpdate()
    
    
    If YesNoPop("Are you sure you want to change the booking date?", "Please read carefully!") = False Then
    Me.Combo_TheatreDate = varBookingID
    Else
    varBookingID = Me.Combo_TheatreDate
    Me.BookingsID = varBookingID
    End If
    
    
    End Sub
    and when the form loads current it loads Me.Combo_TheatreDate = Me.BookingsID.Value

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

Similar Threads

  1. Replies: 1
    Last Post: 08-09-2012, 04:19 PM
  2. How do I update my combo box
    By rrasch in forum Queries
    Replies: 3
    Last Post: 11-23-2011, 03:13 AM
  3. Update Value in Combo Box
    By j2curtis64 in forum Forms
    Replies: 18
    Last Post: 05-13-2011, 04:37 PM
  4. warning to make update note
    By ga3la in forum Access
    Replies: 1
    Last Post: 01-30-2010, 09:51 PM
  5. After Update for a second Combo box
    By nywi6100 in forum Forms
    Replies: 0
    Last Post: 10-23-2006, 03:07 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