G
Guest
Hi, i currently have the following code in the on click event of my button,
Private Sub Open_Rate_Program_Click()
Dim varURL As Variant
varURL = DLookup("[Program Location]", "Program Location", "[PROGRAM
LOCATION].[ID]=" & Me.ID)
If IsNull(varURL) Then
MsgBox "Sorry, this document does not exist!", vbOKOnly + vbInformation
Else
Application.FollowHyperlink varURL
End If
End Sub
I have a query that returns a list of: Record IDs, Company names, Program
Used, and Program Location. the query is supposed to reference 2 tables,
customers and base rates. I have a form that i input my customer info, and
have a combo box were i choose the base rate. I want the command button to
use the query, find the base rate, then the location of the file and open it.
The base rate table has the location field. any ideas?
Private Sub Open_Rate_Program_Click()
Dim varURL As Variant
varURL = DLookup("[Program Location]", "Program Location", "[PROGRAM
LOCATION].[ID]=" & Me.ID)
If IsNull(varURL) Then
MsgBox "Sorry, this document does not exist!", vbOKOnly + vbInformation
Else
Application.FollowHyperlink varURL
End If
End Sub
I have a query that returns a list of: Record IDs, Company names, Program
Used, and Program Location. the query is supposed to reference 2 tables,
customers and base rates. I have a form that i input my customer info, and
have a combo box were i choose the base rate. I want the command button to
use the query, find the base rate, then the location of the file and open it.
The base rate table has the location field. any ideas?