Hi All
I've got a really strange problem with a form that I can't work out, and wondered if anyone could help me.
I have a form with a subform. When a field in the subform is clicked, the mainform updates to show the details.
The code i'm using is
Me.Parent.RecordSource = "SELECT Jotbl_PriceRequest.* " & _
"FROM Jotbl_PriceRequest WHERE Jotbl_PriceRequest.PRID =" & Me.PRID
What I don't understand is that when you go into the form, this code isn't working, however if I go into design view and then straight back to form view, it works perfectly. Can anyone tell me what is happening to enable this code.

I'd really appreciate any advice.
Thanks
I've got a really strange problem with a form that I can't work out, and wondered if anyone could help me.
I have a form with a subform. When a field in the subform is clicked, the mainform updates to show the details.
The code i'm using is
Me.Parent.RecordSource = "SELECT Jotbl_PriceRequest.* " & _
"FROM Jotbl_PriceRequest WHERE Jotbl_PriceRequest.PRID =" & Me.PRID
What I don't understand is that when you go into the form, this code isn't working, however if I go into design view and then straight back to form view, it works perfectly. Can anyone tell me what is happening to enable this code.

I'd really appreciate any advice.
Thanks