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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

last 5 files opened

Status
Not open for further replies.

vlitim

Programmer
Sep 2, 2000
393
GB
How would you go about making a feature like that on access which shows you the last 5 files you opened?? I presume you would have to use a text file or something!?!?

cheers
 
Use a control array of Recent File submenus, and yes a text file. Set the submenu's .Visible property based on wheather there is a recent file cooresponding to that menu item (if there are only 2 recent files and you have 4 array elements, set the last 2 to .Visible = False)
 
"Use a control array of Recent File submenus"??

how do you do that?
 
Each menu item has an "Index" textbox. Type the element number in there and make sure the names are the same, just like any other control array.
 
Sorry to confuse you, I was pointing you toward a menu item under File...Recent Files...File1.txt. To make it like Access, just write the name of each file to disk, and load the items into a listbox on startup. You can use the literal string in the listbox for your OpenFile argument (just use the lstMyListBox.List(lstMyListBox.ListIndex) to get the actual string for the selected recent file).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top