I need to finish my project using Microsoft Visual Studio 2017 and Microsoft Access as the database.
There is a frmCustomer
where the customer needs to enter their credentials and click a SAVE
button and it will save the data to the database. Then, when the RECEIPT
button is clicked, it will open another form named frmReceipt
to display the receipt.
I don't know the code how to do it.
If anyone can help me I'll will be truly thankful.
frmCustomer
Private Sub btnReceipt_Click(...)Handles btnReceipt.Clik
frmReceipt.Show()
Me.Hide()
End Sub
frmReceipt
Private Sub Receipt_Load(...)Handles MyBase.Load
Dim strSql As String = " SELECT * FROM customer where
Dim strPath As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:User\Admin\Documents\Customer.mdb"
Dim cust As New OleDb.OleDbDataAdapter(strSql,strPath)
lblNameAns.Visible = Trur
'lblNameAns.Text = NameTextBox1.text
NameTextBox1 is taken from the frmCustomer
The rest I can't figure out.