×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

create main.prg on app vfp9

create main.prg on app vfp9

create main.prg on app vfp9

(OP)
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

RE: create main.prg on app vfp9


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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close