Edit Problem on FORM

A

Aamer

I am trying to lock the data after update but am un-sucessful so far

On a form I select Company Name and it is stored in Invoice Table
On the sub form I select the transaction which picks up the transactions
from SALES Table.

I have tried going in the properties of the Main Form and selected ALLOW
EDITS to No

but when I do this I cannot add any Company Name.

is there any other way if once the Company is added it cannot be changed
 
P

PieterLinden via AccessMonster.com

Aamer said:
I am trying to lock the data after update but am un-sucessful so far

On a form I select Company Name and it is stored in Invoice Table
On the sub form I select the transaction which picks up the transactions
from SALES Table.

I have tried going in the properties of the Main Form and selected ALLOW
EDITS to No

but when I do this I cannot add any Company Name.

is there any other way if once the Company is added it cannot be changed

You need to store the AllowEdits value for the record back in the table.
then add the checkbox to the form (hidden). Then in the OnCurrent event of
the form, do something like

Me.AllowEdits = me.chkAllowEdits

That way, you can lock individual records - but through the form only.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top