×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

datas of previous record

datas of previous record

datas of previous record

(OP)
Hi every body.

I have a "standard" browse with a "standard" form to update/insert.(C5ee)

When I create a new record, I need to know some values of the previous record of  the file (for exemple the date "myfile:DateOestrus") to do some calcs in the form.

I try this way :

1°) put the browse procedure and the form procedure in the same module
2°) create a data "PreviousDateOestrus) in the module.
3°) assign the value myfile:DateOestrus to PreviousDateOestrus by putting the code "PreviousDateOestrus = myfile:DateOestrus" in the embed "End of format an element of the browse queue/Browse on Myfile".

It's work well but if I delete ALL the records, the  "PreviousDataOestrus" data keep the value of the last record read and don't assign to 0.

May be it's not the good embed to do that?

Could you help me?

Thanks
 

RE: datas of previous record

Hi!

Instead of this, why don't you create an ALIAS of the table in the dictionary and use the Alias table to find your previous value & calculate?

Regards
 

RE: datas of previous record

(OP)
Thank you for your answser.

Yes it's an other way, but I resolve the pb by adding clear(myvariable) on embed "browse box : no record found".

But since a few minutes I have a big problème when linking :

LINK ERROR : unsupported record type1   0

I try with backup of d-1, d-2 d-3, etc ... with the same result!!!

what could be happened?????

RE: datas of previous record

(OP)
Hi,

OUF!!! (in french)

I have a clone of my HD on an other(3-4 months old) ... so I copy the path containing CW5ee from my clone to my HD and all is OK.

If somebody can tell me what hapened

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close