I'm working on a form for people to enter visitor request information for approval, with controls such as txtRequestorName, txtVisitorName, txtStartDate, txtEndDate, etc. I'm adding a command button at the bottom to request another visitor, which would close the form (save), and open again for the next entry. I would like most of the textboxes to autofill with the same information from the previous request, as most requestors have more than one person visiting in the same time frame. I think I could use a DLookUp to enter the values from the most recent entry in the table, but this is very slow. Is there a way to store the values of these textboxes in VBA, close the form without losing the values, open the new form in add mode, and pass those values to the proper textboxes? I think this would happen much faster than a DLookUp, but I don't know if it's possible. If so, do I save the date values differently than the string values?
As always, thank you for sharing your knowledge with the struggling masses.