I have a form with an unbound ListBox that has a "Record Source" select query. The list box displays as needed. What I'm trying to do is move the selected record to the next record via code. How can I do this? The form-listbox is describe as shown:
Forms!MainMenu!ServerList
I can use code to determine the number of records:
Global MaxServers As Integer
Global Lcount As Integer
Lcount = Forms![MainMenu]!ServerList.ListCount
MaxServers = IIf(Lcount > 120, 120, Lcount)
but how do you write the code to move to the next record?????
If Grouped = -1 Then
For X = 0 To MaxServers - 1
MsgBox "This Import option will take a LONG TIME! Please be patient!", vbCritical, "Server Config File Database"
strServerName = Forms![MainMenu]!ServerList.ItemData(X)
Call ImportStep1b
Forms![MainMenu]!ServerList.???????
Next X
Forms!MainMenu!ServerList
I can use code to determine the number of records:
Global MaxServers As Integer
Global Lcount As Integer
Lcount = Forms![MainMenu]!ServerList.ListCount
MaxServers = IIf(Lcount > 120, 120, Lcount)
but how do you write the code to move to the next record?????
If Grouped = -1 Then
For X = 0 To MaxServers - 1
MsgBox "This Import option will take a LONG TIME! Please be patient!", vbCritical, "Server Config File Database"
strServerName = Forms![MainMenu]!ServerList.ItemData(X)
Call ImportStep1b
Forms![MainMenu]!ServerList.???????
Next X