Results 1 to 2 of 2

Thread: image controls on my form

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2006
    Posts
    26

    image controls on my form

    I have a database (which isnt really the problem) with a field which contains links to image files. I have a frame on the form that contains multiple image controls linked to the database. When I run a query, the correct recordset is returned, but my frame returns the images of all the records (rather than just the queried results) Anyone have any ideas why? Also, i was hoping I could get some ideas on making the image controls to autosize to fit into the frame on the form. I would like to have them autosize into 6 images per row and the number of rows determined by the returned recordset.

    Any links, ideas, samples, etc. are greatly appreciated.
    Thanks

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: image controls on my form

    Is this a Web application, because your terminology makes it sound like it is?

    You're going to have to provide more information. If your query gets the correct values and you are displaying only what the query returns then it's simply not possible that other images would be displayed. Either you're getting more records than you intend or else you're not using the result of the query as your source. Either way it's purely guesswork based on the information provided.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width