Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / General 2 / April 2004



Tip: Looking for answers? Try searching our database.

Validating a Data Grid?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Me - 23 Apr 2004 19:38 GMT
Dear all,

Hope you can help me with my current situation:

I am loading 3 fields (EmpID, TFA, PRSI) from a table (Tax Free Allowance)
in Access to a DataGrid on a form in VB6.

It's allowing me to update the data in the DataGrid (DataGridTax) to the
table in Access but i need to perform some sort of validation. On the TFA
and PRSI fields, i want to check if TFA field is Currency/Numeric and PRSI
is numeric. And if not, display an approprate error message.

Would it be best to do this in Visual Basic 6 or in Access? And how?

Brian
bmlogiciels2 - 30 Apr 2004 22:11 GMT
Use the DataGrid Event :  "BeforeColUpdate" . Return "Cancel=True" when
input=wrong.

M. B.

> Dear all,
>
[quoted text clipped - 11 lines]
>
> Brian
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.