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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I update a feild with

Status
Not open for further replies.

Krash878

Programmer
May 8, 2001
172
US
Can I make a form update two feilds on a table at the same time?

I have a form that I enter data in to. It does a function that compares data and then does a math question and posts the answer in a feild. When that feild is filled I want another field to be changed from no to yes. Can someone give me a kick in the right direction. I can supply more info if needed.

Thanks
Kenny
 
Assuming the function returns null if any fields are blank, something like this should work:

field1 = somefunc()
field2 = not isnull(field1)

You could place it in the afterupdate proc of all fields contributing to the answer or the beforeupdate proc of the form depending on your requirements. You could also build it into the function itself.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top