Question: Access to the internal datasets from the script doesn't works.

Answer:

(I write: frDialogForm.Query1.Open) 
Write without "frDialogForm":

1
Query1.Open