Results 1 to 2 of 2

Thread: Can't clear form

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    34

    Question

    I am developing a contact database program. I have form1 and form2. You input contact info on form1 and go to form2 to expand to other info (both forms use the same database but different data controls). When I go back to form1 and change to the next record on the data control, then go to form2 the same info from the previous record is still there. How can I get form2 to clear when I go to the next database record? Please help.

  2. #2
    Hyperactive Member
    Join Date
    Feb 2000
    Posts
    284
    The best thing to do here might be to unload form2 when you exit it and then when you move to the next record on form1 you can refresh form2 and show it.
    Clearing the record is easy on Form2, it is just a matter of setting all the text boxes to empty.
    text1 = ""
    text2 = ""

    Ideally you should have the text boxes set up in an array so then you can just loop through an initialise them.

    Hope this helps

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width