Can't advance to a new record

Mojo1

Board Regular
Joined
Mar 6, 2003
Messages
148
I have a form and I can not advance to a new record. What would cause this to happen?
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Form Advance

I believe that you need one of the columns to have something in it before you call for auto form. If I want to be able to enter up to 20 items, I add a column to the end and number the rows down that column from 1 to 20. Then the form will advance 20 times before it won't advance further.
 
Upvote 0
The advance works in other tables

I can go to the last record and add a new one in two tables that are in sql, but the other three I can not. I believe it is in the table some how. I have created a new table with a different name and linked it to a new form and got the same problem.
 
Upvote 0
Code to advance records

This cod


Private Sub Form_Current()
If Me.NEWRECORD Then
On Error Resume Next
Me.NMMI_NUM = "A" & pad_zeros(Val(Mid$(DMax("[NMMI_NUM]", "INV_NMPHY"), 2)) + 1, "right", 6)
End If

End Sube is in the On Current Event of the form.
 
Upvote 0

Forum statistics

Threads
1,221,525
Messages
6,160,327
Members
451,637
Latest member
hvp2262

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top