Data Entry Only

Data Entry Only

Post by Gregory G. Jackso » Sun, 09 Jul 2000 04:00:00



How do I make a form come up in data entry mode only.  I can do this easy
enough in Access but I am new at VB and finding this simple task rather
difficult.  I am using VB 6.0.  Thanks in advance.

~Greg Jackson

 
 
 

Data Entry Only

Post by Kent Knap » Thu, 13 Jul 2000 04:00:00


I'm assuming that you have a form that has an Add/Edit, etc button.  One
thing you can try is declare a global variable called strMode and set it's
value to ADD.  Then in the load event of the form, check strMode and if it
equals ADD, then execute the Add Button click event.  You could also disable
all other buttons so the user can only add info, not change it.

Hope this helps.

Kent.


>How do I make a form come up in data entry mode only.  I can do this easy
>enough in Access but I am new at VB and finding this simple task rather
>difficult.  I am using VB 6.0.  Thanks in advance.

>~Greg Jackson


 
 
 

Data Entry Only

Post by Gregory G. Jackso » Thu, 13 Jul 2000 04:00:00


It does help...thanks Kent, I appreaciate it!

~Greg


> I'm assuming that you have a form that has an Add/Edit, etc button.  One
> thing you can try is declare a global variable called strMode and set it's
> value to ADD.  Then in the load event of the form, check strMode and if it
> equals ADD, then execute the Add Button click event.  You could also
disable
> all other buttons so the user can only add info, not change it.

> Hope this helps.

> Kent.




Quote:> >How do I make a form come up in data entry mode only.  I can do this easy
> >enough in Access but I am new at VB and finding this simple task rather
> >difficult.  I am using VB 6.0.  Thanks in advance.

> >~Greg Jackson