GavZ
Mostly Beginners Luck!
- Local time
- Today, 20:24
- Joined
- May 4, 2007
- Messages
- 56
Hi,
I have a continuous form with a directory list of file and i want the user to tick a check box on the ones they want and click a button to import them.
The only thing not working is the below where it cycles through the form. It updates the textbox correctly but it always calls the function on the first record!
Please Help..
I have a continuous form with a directory list of file and i want the user to tick a check box on the ones they want and click a button to import them.
The only thing not working is the below where it cycles through the form. It updates the textbox correctly but it always calls the function on the first record!
Please Help..
Code:
DoCmd.GoToRecord , , acFirst 'Goto first Record
With Recordset
While .AbsolutePosition <> .RecordCount - 1
If ch.Value = True Then
Call ImportFile
tb_comp.Value = "Import Complete.."
End If
DoCmd.GoToRecord , , acNext
Wend
If ch.Value = True Then
Call ImportFile
tb_comp.Value = "Import Complete.."
End If
End With