When you creat a new form you have to select Database. This will allow you to connect to the database and query the tables.
When creating a new form select File --> New --> Advanced Form Templates --> Database.
If you are speaking about adding a secondary data once you have created a form and then querying it, I'm at a loss on that one. I'm tying to figure it myself.