'Are you use' message box

  • Thread starter Thread starter Simon
  • Start date Start date
S

Simon

For when i click the order button on my database is there a way that i
can have a messagebox to come up to ask if i am sure i want to place an

order with a yes and no click boxes

Thanks


Simon
 
Reply,

Code something like this...

If MsgBox("Are you sure?", vbQuestion + vbYesNo, "New Order") = vbYes Then
DoCmd.OpenForm "frmOrders", , , , acFormAdd
Forms!frmOrders![Customer ID] = Me.Customer_ID
End If
 

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