Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 712617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:52:05+00:00 2026-05-14T04:52:05+00:00

I am using vb.net running a backend MS.Access database and I am wondering what

  • 0

I am using vb.net running a backend MS.Access database and I am wondering what is the code that I can use to display a picture of an image when the field name is selected.

My MS Access “field” name is Cars_Types: in the files I have the data “GM, Chrysler, Toyota, Honda, and Ford”.

The name of my database is ModelCars.accdb

The pictures are not coded into the database instead I would like them to be coded into the VB.NET program.

I have the database working correctly within my VB.NET program but I am having trouble getting the images to appear.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T04:52:06+00:00Added an answer on May 14, 2026 at 4:52 am

    If you just have the five images or so, you could store them in your .NET application as local resources. When you retrieve an associated record from the database, display it (in whatever context you need, I copied the msdn example here):

    Me.Background= My.Resources.GMImage
    

    Edit: To select which image to use, if you have a string in the DB of the various car types, just use a switch statement:

    Select Case(carType)
        Case "GM": me.picCarPhotos = My.Resources.GMImage
        Case "Ford": me.picCarPhotos = My.Resources.FordImage
    End Select
    

    Disclaimer: I’m more familiar with C# so this may need some tweaking if my VB is off.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a website running .NET 2.0 and have started using the ASP.Net HttpRuntime.Cache
I've got an ASP.NET application running and on the production box it's using about
I'm running tests using the TestDriven.NET VS add-in, and the class library I'm testing
Running an ASP.Net website and using TinyMCE for content management. Users need to be
I am using NHibernate on a new ASP.NET project, and am running into what
I've got a load-balanced (not using Session state) ASP.Net 2.0 app on IIS5 running
Using .Net (C#), how can you work with USB devices? How can you detect
Using .NET 1.1, I have a DataGrid that contains three columns for each row.
Using .Net 3.0 and VS2005. The objects in question are consumed from a WCF
NOTE: Using .NET 2.0, and VS2005 as IDE Hello all, I'm working on logging

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.