And just to get you more confused. If you are using a filter, I would change that to make the form based on a parameterized view. So the form would work with a view that consists of 1 record from the main file based on your variable.
PF
>I have a code to filter the record from the table. Only selected record, I want to plot the graph in the form.
>
>How to pass the variable from the code to the form?
>
>Thanks
(On an infant's shirt): Already smarter than Bush