Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Close opened form?
Message
From
19/01/2007 11:16:40
 
 
To
19/01/2007 11:07:59
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01187017
Message ID:
01187028
Views:
24
This message has been marked as a message which has helped to the initial question of the thread.
>I have two forms, frmMain.scx and frmReport.scx. On both of these I have cmbAssyDesc combo box that opens the same database and open the same table for the cmbAssyDesc items. I always get File in use program error. However, if I close one and open the other, I don't get this problem. Please help. Thanks, Sam

Are you adding tables to the Data Environment (dragging them from your database lists into the DE window?) or opening and closing all tables via code? If the latter then you're missing out on much of the beauty of using "visual".

In the DE, you set a property of Private Data Session, equiv. to Open ... AGAIN (which you learned earlier).

Also you can set the DE's AutoOpenTables and AutoCloseTables properties.

So set these, drag your required tables into the DE (in the earlier example you could have dragged several copies of the table into the DE, one for each combo), then forget about them.

HTH

Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform