how to make data entered

G

Guest

I have a continuous form (with texboxes for data entry) and a table
associated with this form.

To have the data entered I've used the following trick to go to the next row
and return back:
DoCmd.GoToRecord acDataForm, strFormName, acLast
DoCmd.GoToRecord acDataForm, strFormName, acFirst

or

With Me.RecordsetClone
lngRecordCount = .RecordCount
End With

lngRecordCurr = Me.CurrentRecord

strFormName = "frmForm"
If lngRecordCount = lngRecordCurr Then
DoCmd.GoToRecord acForm, strFormName, acPrevious
DoCmd.GoToRecord acForm, strFormName, acNext
Else
DoCmd.GoToRecord acForm, strFormName, acNext
DoCmd.GoToRecord acForm, strFormName, acPrevious
End If

It's working good if the number of rows more than 1. But, if it's just 1
it's not working because there is no way to go to the next row and data
temains un-entered.

How could I resolve it?

Thanks
 
A

Andi Mayer

I have a continuous form (with texboxes for data entry) and a table
associated with this form.

To have the data entered I've used the following trick to go to the next row
and return back:
DoCmd.GoToRecord acDataForm, strFormName, acLast
DoCmd.GoToRecord acDataForm, strFormName, acFirst
try Me.dirty=false
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top