Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

create main.prg on app vfp9

Status
Not open for further replies.

bharons

Technical User
Jan 23, 2019
49
ID
hay expert??
i am newer on this forum? i want to create app that main databases locate in server? and my main server is '\\ACCOUNTING\smartksp\DATA\30\data'? in my main prg just like my attachment? so far when i call a program that i choose is running well, but when i want a copy apart of database into excel error message appear 'invalid path or file name' or sometime 'error ole control command prom'
ex: in my command button my coding on formset.form1 is
mserver = '\\ACCOUNTING\smartksp\DATA\30\excel'
mdate = date()
tempexcel = alltrim(thisformset.form1.text1.value) + ' ' + namemonth(mdate) + ' ' + year(mdate)
select mutasip.* from mutasip where date_income <= date() order by norekening into cursor tempmutasip
mexcel = 'mserver' + '\tempexcel'
export to (mexcel) type xl5
why this happend ?
i wanna place my mserver on my main.prg?

note :
namemonth() is function that i call from namemonth.prg and i store in in init formset
 
 https://files.engineering.com/getfile.aspx?folder=bbcb931e-4139-4091-b8d5-3f1294151df7&file=foxit.rar

Is it because of incorrect directory definition? - you mention two different paths '\\ACCOUNTING\smartksp\DATA\30\data' and '\\ACCOUNTING\smartksp\DATA\30\excel'



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top