default field to previous record data?

H

Howard Brody

Assuming you're using a form for order entry
(frmOrderEntry) and that each order is given an
incremental OrderID:

Include this in your Form_Open code:

Dim strLastOrder as String
dim strfilter as String
strLastOrder = DMax("[OrderID]","tblOrders")
strFilter = "[OrderID] = '" & strLastOrder & "'"

DoCmd.Applyfilter , strFilter

Hope this helps!

Howard Brody
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top