M
Matt
Hi there
I have an application written in Access 2003. The format is access 2000 as
is being developed for clients using the older version.
I have a form that shows a list box which is set to display a list of word
documents that relate to a particular record. To poplulate this list box i
am using the following code:
Dim myPath As String
Dim myFile As String
Dim intIndex As Integer
myPath = DLookup("[saved_directory]", "tblReportParameters", "[type] =
'domestic_quote'")
myFile = Dir(myPath & Forms!frmDomesticQuoteForms!quoteN & "*" &
Forms!frmDomesticQuoteForms!txtLastName & "*.doc")
If IsNull(Me.quoteN) Then
myFile = ""
End If
intIndex = 0
Do While myFile <> ""
Me.lstFiles.Visible = True
Me.lstFiles.AddItem Item:=myFile, Index:=intIndex
myFile = Dir()
intIndex = intIndex + 1
Loop
The problem i have is that although this works fine in access 2003, in
access 2000 i get an error as it doesn't support AddItem
My question is does anybody know of a way to do this in access 2000?
Thanks hopefully in advance
Matt
I have an application written in Access 2003. The format is access 2000 as
is being developed for clients using the older version.
I have a form that shows a list box which is set to display a list of word
documents that relate to a particular record. To poplulate this list box i
am using the following code:
Dim myPath As String
Dim myFile As String
Dim intIndex As Integer
myPath = DLookup("[saved_directory]", "tblReportParameters", "[type] =
'domestic_quote'")
myFile = Dir(myPath & Forms!frmDomesticQuoteForms!quoteN & "*" &
Forms!frmDomesticQuoteForms!txtLastName & "*.doc")
If IsNull(Me.quoteN) Then
myFile = ""
End If
intIndex = 0
Do While myFile <> ""
Me.lstFiles.Visible = True
Me.lstFiles.AddItem Item:=myFile, Index:=intIndex
myFile = Dir()
intIndex = intIndex + 1
Loop
The problem i have is that although this works fine in access 2003, in
access 2000 i get an error as it doesn't support AddItem
My question is does anybody know of a way to do this in access 2000?
Thanks hopefully in advance
Matt