Full Version: Swapping fields in a form
UtterAccess Forums > Microsoft® Access > Access Forms
BoJacob
I posted a similar question that I didn't get resolved. I have two addresses (origin and destination)on my form. how do i create a button event that will swap the addresses for me?
Bob_L
you could use, in the click event of a button:
CODE
Dim strRepl As String
nbsp;   strRepl = Me.txtOrig
    Me.txtOrig = Me.txtDest
    Me.txtDest = strRepl
BoJacob
Thanks Bob your the MAN!
Bob_L
Glad to be able to help thumbup.gif
This is a "lo-fi" version of UA. To view the full version with more information, formatting and images, please click here.