hi everyone,
please help me on how to put my data path in variable. I'm using ADO and my database is visual foxpro 6 and I'm using visual basic 6.
this is my connection string:
Provider=VFPOLEDB.1;Data Source=D:\2007\01\18;Mode=Read;Password="";Collati ng Sequence=GENERAL
my recordsource is:
t_tran.dbf
it worked properly if i put my connection string in ado properties but when putting it in a variable it won't work anymore.
the t_tran.dbf is placed in different folder on every each day. which means, if today is jan, 18, 2007 then the directory would be c:\2007\01\18\t_tran.dbf and tomorrow, the data path will change because the date will be c:\2007\01\19.
So my option in opening the database is to select the date, then the path will change to the specific date.
Hope I explained it correctly.
Thanks in advance :)