Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

'ADD ANOTHER' Button

Status
Not open for further replies.

rclarke

Technical User
May 14, 2001
78
0
0
GB
Hello

Hope everybody is happy

Could somebody help me again please

I am trying to create an 'add another load button'

in a button I have the following code

=TABLEUPDATE(.T.,.T.,"weighbridge")
DO ADD

the Add procedure contains

Procedure Add

Append Blank
_screen.activeform.refresh
Return

But I get the error message cannot update cursor

I Use =TABLEUPDATE(.T.,.T.,"weighbridge")
in the Save and Exit button and It works fine.

Am I Totally of track?

Regards

Rachel s-)
 
Hi..
It is little confusing to me.
In your add another button....
You are coding..
TABLEUPDATE()..
Is it to save the previous appended blank ????

If you want to commit the appended blank... then
DO ADD
then do the tableUpdate()

In this load button.. why you need to use the TABLEUPDATE()
The record appended can be updated by user and then in the save method.. you can do the tableupdate().. am I talking sense.. ???

Best of luck :) ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
LET KNOW IF THIS HELPED. ENOUGH EXPERTS ARE HERE TO HELP YOU OUT! BEST OF LUCK :)
 
I too am now confused

I will Explain what I think the button is doing maybe that will help

=TABLEUPDATE(.T.,.T.,"weighbridge")

I put this in the button because I thought I needed to commit changes to record the user has just entered

Append Blank

I then put this in the button to append a new record to the weighbridge table

_screen.activeform.refresh

I then put this in to refresh the form view hopefully showing the new blank form

But no matter which way round I put the table update and the do add I get the error message cannot update cursor

I hope this makes my first garbled message a little clearer

Rachel s-)




 
HEY WHAT DO YOU KNOW I SORTED IT

BUT THANK YOU ANY WAY RAMANI

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top