Passing Database name and path 
Author Message
 Passing Database name and path

Hi

I've written a VB function with requires two dates to work
out a NetworkDay value (similar to Excel). The VB code
works fine, but needs to get at the database (Access) to
work out whether a day is a holiday. Basically, I can
call the function but can't pass the database name and
path. I can't guarantee where users will install to, so I really
need my function to work like....

NetworkDays (StartDate, EndDate, DatabasePathAndName)

Can anyone tell me a Crystal Value which allow me to pass
the exact database path and name to my function.

Many thanks

Darren

============================
Remove !NOSPAM! if replying by email.



Fri, 23 May 2003 03:00:00 GMT  
 Passing Database name and path
obj_report.SetLocation(path,bd_name)

Saludos.
Juan.



Quote:
> Hi

> I've written a VB function with requires two dates to work
> out a NetworkDay value (similar to Excel). The VB code
> works fine, but needs to get at the database (Access) to
> work out whether a day is a holiday. Basically, I can
> call the function but can't pass the database name and
> path. I can't guarantee where users will install to, so I really
> need my function to work like....

> NetworkDays (StartDate, EndDate, DatabasePathAndName)

> Can anyone tell me a Crystal Value which allow me to pass
> the exact database path and name to my function.

> Many thanks

> Darren

> ============================
> Remove !NOSPAM! if replying by email.



Fri, 30 May 2003 18:54:58 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How to pass Database name and Stored Procedure Name at run time in subreports

2. Space in Path Name passed in as command line argument

3. Retrieving Full Database Path Name

4. Current database path name

5. Path names in a database problem

6. Set Database Name property using no path

7. Set Database name using no path

8. Picking up path name of Access Database

9. App.Path only returning short path name - Why?

10. app.path only returns short path name

11. Long Path Names give Runtime error 76 - Path not found

12. ? How do you change a path to a dos path name

 

 
Powered by phpBB® Forum Software