DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Display parts of an access table in a vb form via a link to template form

Hybrid View

  1. #1
    Join Date
    Apr 2008
    Posts
    10

    Display parts of an access table in a vb form via a link to template form

    I just basically need to hav a link in a vb form which will take u to a template form which should display the info (in a label, picturebox etc.) from a database.

    ie. click here for information on..
    click here for information on..
    click here for information on..
    etc etc.

    If someone could jus explain the steps to take, would b much appreciated

    Thanx

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    Just create the necessary forms and show them when the link is clicked.

    This seems pretty simple. Am I missing something?

  3. #3
    Join Date
    Mar 2008
    Posts
    24
    Here is a good one because it will automatically set a couple properties for you.

    Also, remember to put all the labels in a control array (Make sure they are all named label1 and give the property "Index" a value.

    Code:
    Private Sub Form_Load()
    For A = 0 To Label1.Count - 1
    Label1(0).FontUnderline = True
    Label1(0).ForeColor = vbBlue
    Next A
    End Sub
    
    Private Sub Label1_Click(Index As Integer)
    Form2.Show
    Form2.Text1.Locked = True
    Form2.Text1.Left = 120
    Form2.Text1.Top = 120
    Form2.Text1.Height = Form2.ScaleHeight - 240
    Form2.Text1.Width = Form2.ScaleWidth - 240
    Select Case Index
    Case 0
    Form2.Text1.Text = "Blah Blah Blah"
    Case 1
    Form2.Text1.Text = "Something else"
    End Select 'Make new cases when you make more labels.
    End Sub

  4. #4
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    Blobby: Why a label control array?

Similar Threads

  1. Display a drawing on a MS Access Form
    By prav in forum VB Classic
    Replies: 0
    Last Post: 01-24-2006, 01:20 AM
  2. Access Table to Excel via VB
    By BMWBEAR in forum VB Classic
    Replies: 2
    Last Post: 12-13-2005, 03:19 PM
  3. How to display .pdf image thumbnail in VB form
    By tomeczek in forum VB Classic
    Replies: 0
    Last Post: 10-28-2005, 10:51 PM
  4. Access & SQL Server
    By David Jones in forum Database
    Replies: 0
    Last Post: 08-31-2001, 12:22 PM
  5. Replies: 0
    Last Post: 12-20-2000, 01:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center