Use one form for data entry and viewing

stepone

Registered User.
Local time
Today, 18:44
Joined
Mar 2, 2004
Messages
97
Hi folks,

I have created a data entry form with one key field (Customer ID) used to identify customers. I now want to be able to use the same form to view existing entries.

In the View mode I dont want to allow the users to change the Customer ID field. In the data entry mode they must be able to enter a Customer ID.

What is the best way to achieve this effect with a single form ?

Also, from my main switchboard form, how do I open another form directly in data entry mode ?

Thanks very much for any help,
Peter.
 
Last edited:
I have an example of such a form on my website. download item 7 "One Form Example"
 
In the code to open the form do the following:

to view it:
use the acReadOnly option

to add new records only
use the acAdd option

the default is acEdit

you can do the same from a switchboard as well by choosing the option from the list of actions (open in add mode etc)
 

Users who are viewing this thread

Back
Top Bottom