> alas - turned Data Entry to 'yes' - - and still a blank form.
>
[quoted text clipped - 56 lines]
>> >> End If
>> >> End Sub
Thanks for jumping in Ken. We overlooked that point for sure.
>Is the query an updatable query? If it's not, you will not get any "blank"
>record in the popup form, regardless of setting the AllowAdditions property
[quoted text clipped - 5 lines]
>>> >> End If
>>> >> End Sub

Signature
HTH - RuralGuy (RG for short) acXP WinXP Pro
Please post back to this forum so all may benefit.
ummm...hmmm...is the query "updateable" ??; not sure the meaning of this term
- sorry.
The query does not allow one to add a new record. (i.e. when it returns
records there is no ability to make a new record using the query itself.)
The query is parameter-ed from values in txtBoxes found in an active Form
(that precedes the popup form action).
Just to review: These values are put in by user and then when they move down
to a blank txtBox - the popup happens giving them some useful data that helps
them decide what to put into this next txtBox.
Works great - if I do say so myself - - - as long as there is a record
generated by that popup form's query....if not all you get is a blank form.
No record is rare but not impossible, so I need a default message essentially
saying that there is no data but I also need the info in the subform of the
popup to show....but hey am repeating myself....
if that helps and is relevant.
I think the core issue is;
*when the record source of a form is a query
*and that query is not producing any record
*the form is not loading
I can accept that perhaps that is "just the way it is". It isn't
unreasonable behavior actually. But I just had never seen it before and so
am always trying to further my understanding. I sort of expected the form to
load but the bound controls to have an error type display.... So I expected
to see the labels and the subform. Did not expect that the form would not
load.
Definitely welcome additional input.
Regards,
NTC

Signature
NTC
> Is the query an updatable query? If it's not, you will not get any "blank"
> record in the popup form, regardless of setting the AllowAdditions property
[quoted text clipped - 60 lines]
> >> >> End If
> >> >> End Sub
Ken Snell (MVP) - 10 May 2007 18:20 GMT
> ummm...hmmm...is the query "updateable" ??; not sure the meaning of this
> term
> - sorry.
>
> The query does not allow one to add a new record. (i.e. when it returns
> records there is no ability to make a new record using the query itself.)
The above observation confirms that the query is not updatable. Therefore,
any attempt to build a data-entry form using the query will result in a
blank form if you set Data Entry property to Yes or if there are no records
returned by the query.
See these articles for information about what can make a query nonupdatable
(watch for line-wrapping):
When can I update data from a query?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/off2000/html/ac
conDeterminingWhenCanUpdateDataQueryS.asp
Harnessing the Power of Updatable Queries
http://msdn.microsoft.com/library/default.asp?url=/archive/en-us/dnaraccgen/html
/msdn_harness.asp
ACC2000: Cannot Edit or Update Record on a Form
http://support.microsoft.com/default.aspx?scid=kb;en-us;209571&Product=acc
ACC2000: Status Bar Displays "Recordset Not Updateable" Message When You Try
to Update a Linked Table
http://support.microsoft.com/default.aspx?scid=kb;en-us;304179&Product=acc
INFO: Troubleshooting Errors That May Occur When You Update Data in Queries
and in Forms
http://support.microsoft.com/default.aspx?scid=kb;en-us;328828&Product=acc
ACC: Update Query Based on Totals Query Fails
http://support.microsoft.com/default.aspx?scid=kb;en-us;116142&Product=acc

Signature
Ken Snell
<MS ACCESS MVP>
Ken Snell (MVP) - 10 May 2007 18:28 GMT
> I need a default message essentially
> saying that there is no data but I also need the info in the subform of
> the
> popup to show....but hey am repeating myself....
Because your popup form's RecordSource query uses a query that reads a
parameter from the form, the easiest way of doing this is to use the popup
form's Open event to test if there are any records to be displayed; if not,
cancel the form's opening:
Private Sub Form_Open(Cancel As Integer)
If Me.Recordset.RecordCount = 0 Then Cancel = True
End Sub
Then add 4 lines of code to your code that opens the popup form to trap the
error that occurs if the popup form is cancelled and to tell the user there
are no records to display:
DoCmd.OpenForm "NameOfPopupForm"
' Next four lines are new
If Err.Number = 2501 Then ' error that occurs if popup form is cancelled
Err.Clear
MsgBox "No records to display."
End If

Signature
Ken Snell
<MS ACCESS MVP>
John W. Vinson - 10 May 2007 20:45 GMT
>ummm...hmmm...is the query "updateable" ??; not sure the meaning of this term
>- sorry.
>
>The query does not allow one to add a new record. (i.e. when it returns
>records there is no ability to make a new record using the query itself.)
Then it's not updateable. That's what it means - the Query cannot be used to
edit or add records.
>The query is parameter-ed from values in txtBoxes found in an active Form
>(that precedes the popup form action).
[quoted text clipped - 8 lines]
>saying that there is no data but I also need the info in the subform of the
>popup to show....but hey am repeating myself....
You can use the popup form's Open event to cancel opening the form if there is
no data:
Private Sub Form_Open(Cancel as Integer)
If Me.RecordsetClone.Recordcount = 0 Then
MsgBox "No data to display!", vbOKOnly
Cancel = True
End If
End Sub
John W. Vinson [MVP]
NetworkTrade - 11 May 2007 00:31 GMT
appreciate all input.
I now have a better understanding of 'updateable' query/form interaction....

Signature
NTC
> >ummm...hmmm...is the query "updateable" ??; not sure the meaning of this term
> >- sorry.
[quoted text clipped - 29 lines]
>
> John W. Vinson [MVP]