im trying to get a form to let me change the record im looking at though a text box. This hasnt worked any of the ways ive tried yet but im not the best at vb. my idea was to make a button that returns you to the first value then sends you to the next record X ammount of times. So far i have
[code=vb]
Private Sub Command8_Click( )
Dim rec As Integer
Dim count As Integer
count = 0
rec = Text12
DoCmd.GoToRecor d , , acFirst
Exit_Command9_C lick:
Exit Sub
Err_Command9_Cl ick:
MsgBox Err.Description
Resume Exit_Command9_C lick
Do Until count = rec
count = count + 1
DoCmd.GoToRecor d , , acNext
Loop
End Sub[/code]
[code=vb]
Private Sub Command8_Click( )
Dim rec As Integer
Dim count As Integer
count = 0
rec = Text12
DoCmd.GoToRecor d , , acFirst
Exit_Command9_C lick:
Exit Sub
Err_Command9_Cl ick:
MsgBox Err.Description
Resume Exit_Command9_C lick
Do Until count = rec
count = count + 1
DoCmd.GoToRecor d , , acNext
Loop
End Sub[/code]
Comment