Run Time vs Design Time - No Current Record 
Author Message
 Run Time vs Design Time - No Current Record


Quote:

> When I built my EXE program, using Paradox for Windows 4.5, I tried
> to begin entering data, I got the error$(err) message, "No current
> record" and the program terminated.  But under design mode, I did not
> get no message and it allowed me to enter the data.  

> Anybody know what I'm doing wrong?  I always have problems when the
> initial database tables are empty.  I remember reading to create dummy
> records but I don't want these records to be seen.  

Assuming that you are using controls bound to a Data control, if the
underlying table or database is empty, you must execute an AddNew
method before:

1) Entering text in a bound control
2) Clicking on the Data Control buttons

This problem is caused by the automatic update functionality built into
the Data Control.  When you enter data and then execute an AddNew on
an empty table or database, the Data Control attempts to update the
current record (of which there isn't one).

The workaround is to simply disable the bound controls and Data
Control until an AddNew method had been issued.

Paul



Tue, 08 Jul 1997 03:53:40 GMT  
 Run Time vs Design Time - No Current Record
When I built my EXE program, using Paradox for Windows 4.5, I tried
to begin entering data, I got the error$(err) message, "No current
record" and the program terminated.  But under design mode, I did not
get no message and it allowed me to enter the data.  

Anybody know what I'm doing wrong?  I always have problems when the
initial database tables are empty.  I remember reading to create dummy
records but I don't want these records to be seen.  

Thanks,
Dave



Mon, 07 Jul 1997 23:50:54 GMT  
 Run Time vs Design Time - No Current Record

: When I built my EXE program, using Paradox for Windows 4.5, I tried
: to begin entering data, I got the error$(err) message, "No current
: record" and the program terminated.  But under design mode, I did not
: get no message and it allowed me to enter the data.  

: Anybody know what I'm doing wrong?  I always have problems when the
: initial database tables are empty.  I remember reading to create dummy
: records but I don't want these records to be seen.  

If your tables are empty, dun use any of the move cmds until an
addnew..update is done.

--
/~ ~__~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ \
/  |__ ilent Dreamer  ~{CN!!VP!!HK~}  Denny Quek C.H.   .;;;.         \  

/       Html:   http://www.iscs.nus.sg/~quekchue    \=/   <snore>\
/                                                                     \
/~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~  ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ \



Tue, 08 Jul 1997 11:07:44 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. web service and updating web reference with vb.net design time vs run time

2. web service and updating web reference with vb.net design time vs run time

3. Design time vs Run time

4. Design Time vs Run Time

5. Design time vs. Run time

6. Assign a treeview at design run time to other at design time

7. Code running in design time or run-time?

8. ADO data control Design -vs- Run Time

9. Paint Event different design vs run-time?

10. getting run-time behavior of a contained control in a user control at design time

11. MsgBox pauses App at Design time but not run time

12. design-time functionality at run-time

 

 
Powered by phpBB® Forum Software