C
Craig
Hi
I am new to access and am using SQL Server 2000 as the back end.
I have a list page where I click on a button and it opens a new form page
that shows records. That all works.
The RecordSource on the form page is......
SELECT tblActivities.* FROM tblActivities WHERE (ProfileID = @ProfileID)
What's the proper way to substitute or set the value of a parameter??
Please Help!
Thanks
The code below worked but I know its not the right place or way to set a
parameters value.
Private Sub Form_Load()
Dim intProfileID As Integer
intProfileID = Forms!frmActivitiesList![ProfileID]
Form.RecordSource = "SELECT tblActivities.* FROM tblActivities WHERE
(ProfileID = " & intProfileID & ")"
Form.Requery
End Sub
I am new to access and am using SQL Server 2000 as the back end.
I have a list page where I click on a button and it opens a new form page
that shows records. That all works.
The RecordSource on the form page is......
SELECT tblActivities.* FROM tblActivities WHERE (ProfileID = @ProfileID)
What's the proper way to substitute or set the value of a parameter??
Please Help!
Thanks
The code below worked but I know its not the right place or way to set a
parameters value.
Private Sub Form_Load()
Dim intProfileID As Integer
intProfileID = Forms!frmActivitiesList![ProfileID]
Form.RecordSource = "SELECT tblActivities.* FROM tblActivities WHERE
(ProfileID = " & intProfileID & ")"
Form.Requery
End Sub