>Craig
>
>Should I add this to my MAIN.PRG.... I tried it there and got an error when i ran the exe.....
> DATABASE 'TIMEPRO' IS NOT OPEN
>Am I missing something, like a path or something?
>
>
>
>
>>Put this before calling the NewID procedure:
>>SET DATABASE TO MyDbc
You need the code someplace after you open the DBC. You can have multiple DBCs open at once and then SET DATABASE TO MyDbc to make a particular DBC current. This works just like a SELECT MyDBF to make a table current.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer