Force User to Fill in Fields

Hello,

I have 5 fields on my form, that I want the user to be FORCED into populated before the record will be saved.

txtBusinessName
txtAptisID
txtCreditAmount
lstReasonCode
lstGroup

If those fields are NOT populated the record should NOT be saved.
xp310Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

peter57rCommented:
Hi xp310,
Set the Required property of each field to Yes, in the table design.

Pete

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
flavoCommented:
OPen your table up in design view and set the "Required" property to Yes (its Down the bottom)
Dave
flavoCommented:
Dang.. To slow again :-)
Dave
Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

yhwhlivesinmeCommented:
you can make those fields required in the table that you are pulling them from

you can also put code in the after update event of the form

something like:

if isnull(me.txt1) then
 msgbox "you must fill in that field"
end if
cancel = true
xp310Author Commented:
Thank you Pete
peter57rCommented:
Hi Dave
It's bound to happen once in a while(:-)

Pete

xp310

Thanks

Pete
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.