Having issues with visual basic - HotUKDeals
We use cookie files to improve site functionality and personalisation. By continuing to use HUKD, you accept our cookie and privacy policy.
Get the HUKD app free at Google Play

Having issues with visual basic

SAVE4IT Avatar
6y, 10m agoPosted 6 years, 10 months ago
I am trying to assign different labels as fields from an access database. I have attached the database to my program but just cant seem to code the link for the labels to show the fields that I want from the database.

If you know how to help would be great if you could!
SAVE4IT Avatar
6y, 10m agoPosted 6 years, 10 months ago

All Comments

(4) Jump to unreadPost a comment
What is the code you have written so far? What error do you get if any? Have you checked if you have written database connection code correctly? Sorry about the questions.
I have connected the database to my application through the visual basic wizard. I have no real coding with regards to the labels because I cant seem to find code that works.

All I want is for example

Label1.text = database1.field.firstfield

Thanks for your help

I am very new to programming so it may be an easy question but I just cant find the solution anywhere!
have you made a connection string to your database?
Have now. I placed it in the form load.

Post a Comment

You don't need an account to leave a comment. Just enter your email address. We'll keep it private.

...OR log in with your social account

...OR comment using your social account

Thanks for your comment! Keep it up!
We just need to have a quick look and it will be live soon.
The community is happy to hear your opinion! Keep contributing!