Can anyone help on how to show a message box showing that existing record has been entered in database if i tried to enter the new record. However, if the input is new record (record added), the record is saved into the database. I'm using visual basic 2008 and Microsoft access for database.
Cally_Law
0
Newbie Poster
Recommended Answers
Jump to PostHi!
Here is a code i have made to update the table through connectionstring
See the attachment.
How to use:
enter id in the textbox and press insert button.
How to check in database??
Please see the video i have recommended in the previous …
Jump to PostHmmm.... My bad i write this one wrong:
'ALLYOURCOlumnNamesCommaSeperated' it should be 'AllValuesCommaSeparated'>>>> but i saw urs also put xxx.text ,not column name.
xxx.text is a value of textbox. you can hard code it some values for testing it should run atleast once.>>>but only need username …
Jump to PostHi!
These are equivalent:
strSQL = "INSERT INTO Employee VALUES (13,'Shahan','Ayyub')"
'OR
strSQL = "INSERT INTO Employee VALUES (" & Val(txtID1.Text) & ",'Shahan','Ayyub')"
IF:
txtID1.Text = 13See the attachments:
Jump to PostOkay...Kindly answer few questions: (in the same sequence)
1) So you mean if you write like this:
'shahan','Ayyub'it is saving ?? Right ??
2) Are you looking for a code to take values from all text boxes and then save in database.
3) Are you …
Jump to Post2)
You should use google to understand how to make query dynamic to take values from text box. I would recommend reading articles on how to do this.
s
One thing you should know that:
When string pass to the database with a single quotes like if you have Berth …
All 29 Replies
Pgmer
50
Master Poster
Featured Poster
Netcode
33
Veteran Poster
ShahanDev
41
Junior Poster
Cally_Law
0
Newbie Poster
Cally_Law
0
Newbie Poster
Cally_Law
0
Newbie Poster
ShahanDev
41
Junior Poster
Cally_Law
0
Newbie Poster
ShahanDev
41
Junior Poster
Cally_Law
0
Newbie Poster
Netcode
33
Veteran Poster
Cally_Law
0
Newbie Poster
ShahanDev
41
Junior Poster
Cally_Law
0
Newbie Poster
ShahanDev
41
Junior Poster
ShahanDev
41
Junior Poster
Cally_Law
0
Newbie Poster
ShahanDev
41
Junior Poster
Cally_Law
0
Newbie Poster
ShahanDev
41
Junior Poster
ShahanDev
41
Junior Poster
ShahanDev
41
Junior Poster
Cally_Law
0
Newbie Poster
ShahanDev
41
Junior Poster
ShahanDev
41
Junior Poster
Cally_Law
0
Newbie Poster
ShahanDev
41
Junior Poster
Cally_Law
0
Newbie Poster
ShahanDev
41
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.