save Y/N?

B

B. Wassen

From main menu I go to a database where I can change data. Before I return
to the main menu I would like to have a box wich asks "Save Y/N"
If Y save (how?)
Else Return

Thanks,

Ben
 
H

Haldun Alay

If MsgBox("Save", vbYesNo, "Application Name") = vbYes Then
'Saving Process
Else
'return
End If


Haldun
 
B

B. Wassen

Thanks,

the messagebox is working but how can I actually save the data?
What comes after Then en between else and endif?


Private Sub Hoofdmenu_Click()

If MsgBox("Wilt u de wijzigingen opslaan?", vbYesNo, "Orderinvoer.xls") =
vbYes Then


Else


End If






End Sub
 
H

Harald Staff

Hi Ben

Record a macro while saving and you have the proper syntax and parameters.
 

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