Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

trouble with form

Status
Not open for further replies.

drrocket5292

Technical User
Sep 6, 2005
73
US
Hi,
I'm new to databases but I am making one for my work. I created a form in MS Access that has four listboxes on it and I have written code that allows me to delete records based on what is in one of the listboxes if I want to. One problem that I am having is that after I delete a record it wont let me click on any of the listboxes the next time I go to form because it says the record is deleted. The only way to get the form to work is to click the scroll button access provides on the bottom of the form to move to the last record. Is there a way to write code so that the form automatically goes to the last record every time the form opens and every time I delete a record? I am really new to writing VBA so the simpler the better. thanks in advanc for the help.
 
Have a look at the DoCmd.GoToRecord method.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top