Display values from DoCmd.RunQuery

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi there,

Could someone please advise me?

I use DoCmd.RunSQL SQLInsert in my code to insert a new record

SQLInsert = "Insert Into tblMSFID (MSFRef, MSFRev) " & _
"Values (DMax('MSFRef', 'tblMSFID') + 1, '-')"

How could I display the two values in the messagebox the moment a user get
these values.

Thanks in advance.
 
MsgBox "I just inserted " & DMax("MSFRef", "tblMSFID") & _
" and - into table MSFRef", vbOkOnly + vbInformation
 

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

Back
Top