It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

add button for a database

Moderator: dafunkymunky

add button for a database

Postby Snowb71918 on Thu Apr 08, 2010 1:44 am

What I want to design an inventory management system (like MDI DB, child within the parent), on the main form I want to add a button that will pop up the form I want to update. For example, say that I want to add/delete an employee from the database how would I code something like that...im totally lost, on how I will code something like that. Any suggestions would be a great help.
Snowb71918
 
Posts: 1
Joined: Thu Apr 08, 2010 1:24 am

Re: add button for a database

Postby kk8080 on Sat Apr 24, 2010 4:40 pm

Hey Snowb71918, you want a form to pop-up or message box for confirmation.

I suggest to use the message box it's easy and low memory usage unlike form just for confirmation. Here's the sample code.
Private Sub Command1_Click()
Dim retval As String
retval = MsgBox("Are your sure you want to delete this file", vbQuestion + vbYesNo, "Please Confirm")
If retval = vbNo Then Exit Sub 'User click the no button
'---- User click yes
' do some code below.
Snowb71918, you can download sample vb inventory program here for your reference.
http://visualbasic-source-code.com/visual-basic-6/

Kenneth

End Sub :lol:
kk8080
 
Posts: 4
Joined: Sat Apr 24, 2010 4:12 pm


Who is online

Users browsing this forum: No registered users and 2 guests