C
Craig
Is there a way to reference "resZip" in the following code from a form .. eg
MyFile = ![Me.cboFieldName]
where the cboFieldName = rezZip
The recordset contains one field which groups a set a set of data, in this
case a zip code. But at times it may be City, County, Country.
----------------------------------------------------------------------
Set rst2 = CurrentDb.OpenRecordset("qryGroupField")
With rst2
Do Until .EOF
Myfile = ![resZip] **(i want to change this line to a
variable from a combobox)**
Export function which runs a query based on the value of resZip and exports
a file.
..MoveNext
Loop
MyFile = ![Me.cboFieldName]
where the cboFieldName = rezZip
The recordset contains one field which groups a set a set of data, in this
case a zip code. But at times it may be City, County, Country.
----------------------------------------------------------------------
Set rst2 = CurrentDb.OpenRecordset("qryGroupField")
With rst2
Do Until .EOF
Myfile = ![resZip] **(i want to change this line to a
variable from a combobox)**
Export function which runs a query based on the value of resZip and exports
a file.
..MoveNext
Loop