Sorry about that. Then what code can I add here sir/ma'am
Private Sub AddBook()
' ADD PARAMETERS
Access.AddParam("@BNo", BookNo.Text)
Access.AddParam("@Book_Category", Category.Text)
Access.AddParam("@Book_Title", Title.Text)...
This the error that always pop up when I input duplicate Number. How can I fix that. I want to pop up a message that a user can understand easily if theirs duplicate number then it will not proceed to save. What is the code for that. Sorry about this question.
Here the code but i cant fine the correct code for it.
If DateTimePicker1.Value.Date = Not Selected Then
ErrorProvider1.SetError(DateTimePicker1, "PLEASE SELECT A DATE.")
Return
Else
Me.ErrorProvider1.SetError(Me.DateTimePicker1, "")
End If
I have three textbox, one datetimepicker, one button for save and one errorprovider.
The problem is every time I input a data in textbox and I forgot to select the date it give an error in datetimepicker then when I select a date because I forgot it then save it the error provider still in...
The thing is I'm creating a log in , in ms visual studio 2010 and ms access database using vb.net language.
Also the username is Admin and the password is admin in database.
The problem is that when I login and input username and password like this admin for username and for password is admin ...
Im using vb.net language and ms access in ms visual studio 2010
Why when I'm saving data or add data the ms access have been deleting the data that i input?every 2 or 1 minute it will delete after isave or add
What is wrong in my code below?
How to fix the error?
Private Sub AddAdmin()
' ADD PARAMETERS
aAccess.AddParam("@admin_no", txtANo.Text)
aAccess.AddParam("@username", txtAUsername.Text)
aAccess.AddParam("@password", txtAPassword.Text)
'...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.