Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
No table is open in the current work area
Message
From
16/12/2004 15:17:28
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
No table is open in the current work area
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00969826
Message ID:
00969826
Views:
72
I am getting this error, i will try to explain what i do to get the error:

I have a grid with two records, when i change the last field of the grid setting to empty and press the '+' key which is captured by the form which have this code:

CASE CHR(nKeyCode) = "+"
NODEFAULT && No permitir que se vean los caracteres en la pantalla
Thisform.cmdCancelar.Click

&& This is the code of the cmdCancelar.Click

With thisform
.cboProcesos.ListIndex = -1
.SetAll("Value","","TextBox")
.SetAll("Value","","CKTextBox")

.grdDatos.RecordSource = "" && <------------- Get error here
.txtTicketNo.SetFocus
.Validticket = .F.
EndWith

I get an error saying

"No table is open in the current work area"

I check the datasession and the table is open in that datasession, the weird thing also is that it empties the first two columns of the current record.

But if i change the focus to other control using the keyboard or mouse i don't get the error.

Can someone help me?
Reply
Map
View

Click here to load this message in the networking platform