RexesOperator
Registered User.
- Local time
- Today, 00:44
- Joined
- Jul 15, 2006
- Messages
- 604

My form is opening blank. I have tried compact and repair. I imported everything into a new database. I have checked the query to make sure it has data. I have checked the form's properties to make sure Data Entry is set to No on the main form AND the subforms. I deleted the query and built a new one. I even built a new form form the same query - the new form works. So the problem isn't the query.
The last thing I tried was creating a blank form from the same query and copying the controls on the original form into the new one. Everything works. The question now is why? I added Allen Browne's discussion for anyone else who might have the same problem.
I looked on Google and found Allen Browne's explanation - see below, but this does not seem to apply. The images show the settings I am using. I have attached a stripped version. (Note that although the second image shows the textbox control source as tblTransactions.TransactionsID, the control source is actually from the qryTransactions TransactionsID. I was trying to see if the problem was in the query or the table.)
From Allen Browne:
The Cause
It happens when both these conditions are met:
There are no records to display, I have records in the query
and No new records can be added. New records can be added
Condition (a) can be triggered in several ways. Examples:
The form's Data Entry property is set to Yes. (This means the form shows no existing records, i.e. it is for entering new ones only.)
The form has a Filter applied (or is opened with a WhereCondition) that yields no records.
The form is based on a query where the criteria yield no records.
The form is based on a table that has no records.
Condition (b) can be also be triggered by several things:
The form's Allow Additions property is set to No.
The form's Recordset Type property is set to something other than Dynaset.
Attachments
Last edited: