sorry question was so bad but it was basicly trying to open a PDF depending on user input but i worked it out, code is below to explain it a bit better.
1st one is in access and 2nd is in Visual studio 2008.
-
Private Sub cmdSite_Click()
-
Application.FollowHyperlink ("C:\~TEST\Quotes\" & Form_1.[ProjectNum] & " " & Form_1.[LastName] & "\Quotes\" & Form_1.[ProjectNum] & "-" & Form_1.[ClientID] & "-" & Form_1.[LastName] & "_SitePlan.pdf")
-
End Sub
- Private Sub cmdOk_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdOk.Click
-
Dim Client As String
-
Dim Project As String
-
Dim LName As String
-
Project = Me.txtProject.Text
-
Client = Me.txtClient.Text
-
LName = Me.txtLast.Text
-
Process.Start("C:\~Test\quotes\" & Project & " " & LName & "\quotes\" & Project & "-" & Client & "-" & LName & "_SitePlan.pdf")
-
End Sub
Now that i have got past that i need to make a listbox that gets its infomation from access. my problem is.. i can only have it display 1 row at a time but what i need is 2. but only using the projectnumber for referance (lastname is just for readability, cause having to remember 100's of numbers is just insane).
need this in list box:
ProjectNum - Name
1 - bob
2 - fred
3 - dave
what i have worked out is basicly just
ProjectNum:
1
2
3
etc
Or name:
bob
fred
dave
etc
any help on this will be handy
thanks.