Ok. I changed the DataEntry = No, but the problem now is when I exit the
form and open it back up. The problem is still the same: the form only shows
the new record and not the ones already entered. How can I fix this problem
for good?
> Sounds like the DataEntry property of the form is set to Yes. Change it to
> No.
[quoted text clipped - 15 lines]
> > Is there something I need to do to correct this problem that will allow me
> > to see every record entered using my form? Thanks.
> Ok. I changed the DataEntry = No, but the problem now is when I exit
> the form and open it back up. The problem is still the same: the
> form only shows the new record and not the ones already entered. How
> can I fix this problem for good?
Are you opening the form from code or macro? The OpenForm command can also
specify that the form be opened in DataEntry mode by using the acAdd argument.
If you see that remove it.

Signature
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Yepp - 18 Dec 2007 20:45 GMT
I am just opening it manually (i.e., not via code or macro). That is what
makes no sense.
The form autofills some fields...could that be an issue why this keeps
happening?
> > Ok. I changed the DataEntry = No, but the problem now is when I exit
> > the form and open it back up. The problem is still the same: the
[quoted text clipped - 4 lines]
> specify that the form be opened in DataEntry mode by using the acAdd argument.
> If you see that remove it.
Rick Brandt - 19 Dec 2007 18:58 GMT
> I am just opening it manually (i.e., not via code or macro). That is
> what makes no sense.
> The form autofills some fields...could that be an issue why this keeps
> happening?
Autofills some fields how? With code or macro? If so then post the code or
macro steps.

Signature
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Yepp - 20 Dec 2007 00:28 GMT
Here is the code that autofills some of the fields on the form...is there
code I can add to make DataEntry stay set equal to No?
Private Sub txtPender_Number_AfterUpdate()
Dim strSQL As String
Dim rs As DAO.Recordset
strSQL = "SELECT [prv1].LAST_NAME, [prv1].FIRST_NAME, [prv1].ADDRESS_LINE_1,
[prv1].ADDRESS_LINE_2, [prv1].CITY, [prv1].STATE, [prv1].ZIP_CODE,
[prv1].PHONE_NUMBER FROM [prv1] WHERE " & _
"[prv1].SEQ_PROV_ID=" & Me. Pender_Number
Set rs = CurrentDb.OpenRecordset(strSQL)
rs.MoveLast
rs.MoveFirst
If rs.RecordCount > 0 Then
Me.txtPender_Last_Name = rs.Fields![LAST_NAME]
Me.txtPender_First_Name = rs.Fields![FIRST_NAME]
Me.txtPender_Address = rs.Fields![ADDRESS_LINE_1]
Me.txtPender_Address2 = rs.Fields![ADDRESS_LINE_2]
Me.txtPender_City = rs.Fields![CITY]
Me.txtPender_State = rs.Fields![STATE]
Me.txtPender_Zip = rs.Fields![ZIP_CODE]
Me.txtPender_Phone = rs.Fields![PHONE_NUMBER]
End If
rs.Close
Set rs = Nothing
End Sub
> > I am just opening it manually (i.e., not via code or macro). That is
> > what makes no sense.
[quoted text clipped - 3 lines]
> Autofills some fields how? With code or macro? If so then post the code or
> macro steps.
> Ok. I changed the DataEntry = No, but the problem now is when I exit the
> form and open it back up.
...
> How can I fix this problem for good?
Clarification, please. So, with that change, it works right once, but
reverts to 'old' behaviour after that?
In design view, set DataEntry to No *and save the form*. Then open it in
form view.
What happens?
Close & reopen form
What happens?

Signature
HTH,
George
> Ok. I changed the DataEntry = No, but the problem now is when I exit the
> form and open it back up. The problem is still the same: the form only
[quoted text clipped - 27 lines]
>> > me
>> > to see every record entered using my form? Thanks.
Yepp - 20 Dec 2007 00:20 GMT
I opened the form in design view and set DataEntry to No; I then saved the
form and switched to form view. It works normally (i.e., I can see all
records that have been entered) while I am in the form. Once I exit the form
and then open it back up, it reverts back to showing only a new record. When
I look at the properties of the form in design view, the DataEntry is still
set to No...but still I see no records.
> > Ok. I changed the DataEntry = No, but the problem now is when I exit the
> > form and open it back up.
[quoted text clipped - 12 lines]
>
> What happens?