Building a form based on customers database that comes in from week to week. i created a list box that uses the dbf that was sent.
Here is what i have so far.
i created a form and added two command boxes and a list box. The code for the first command box works just fine
thisform.LIST1.rowSOURCE = 'filenames.filename'
thisform.LIST1.rowSOURCETYPE = 6
But when I try to use the second command box i get the "cannot access the selected tables. filenames.filename" when i try to do this
"USE filenames.dbf
SET FILTER TO ALLTRIM(filename)=(clistofnames)"
clistofnames by the way is the controlsource for the listbox. I did some research and tried adding this before any of my code on the second command box. "thisform.LIST1.rowSOURCE = ''
no success. any ideas?
Here is what i have so far.
i created a form and added two command boxes and a list box. The code for the first command box works just fine
thisform.LIST1.rowSOURCE = 'filenames.filename'
thisform.LIST1.rowSOURCETYPE = 6
But when I try to use the second command box i get the "cannot access the selected tables. filenames.filename" when i try to do this
"USE filenames.dbf
SET FILTER TO ALLTRIM(filename)=(clistofnames)"
clistofnames by the way is the controlsource for the listbox. I did some research and tried adding this before any of my code on the second command box. "thisform.LIST1.rowSOURCE = ''
no success. any ideas?