hello guys
what is the best way of populating text boxes with values from the database. I am using access and want to display some values to two textboxes . I have been using the GetData method but I got a prpblem , in case the value is not found I want to call another form where it can be added to the database. the data being got is from the same table.
thanks.
Emma Etigu
0
Light Poster
Recommended Answers
Jump to PostHi
Can you post the code that you are currently using? Usually, if you are just looking to grab some data I would recommend using an OleDbDataReader which can be implemented along the …
Jump to PostHi
If you want to show a form when there is no data then you would do something like:
…If et.rows.count = 0 Then Dim addForm as New YourOtherForm addForm.Show 'Or use ShowDialog to keep it on top until closed Else TextBox2.Text = x.Price End If
All 7 Replies
djjeavons
113
partis vestri scientia
Emma Etigu
0
Light Poster
djjeavons
113
partis vestri scientia
Emma Etigu
0
Light Poster
djjeavons
113
partis vestri scientia
Emma Etigu
0
Light Poster
zizo.ahmed.779
0
Newbie 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.