Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Using VB 2013 to programmatically determine Access (2010, 2013) field data types

$
0
0

I used the Data Set Designer to add a connect string to an external Access (2010-2013 accdb) table to Form1 in Visual Basic (Visual Studio 2013).  Form1 was set up with text boxes, Data Grid View and Details View from the Access table without issue. This setup gave got all the standard dataset, binding source, table adapter, table adapter manager, and binding navigator items.

Now, I wish use VB programmatically to do field and form level field validation based upon data filed type (e.g short, yes/no, date/time, etc.).  Thus, I need a simple way under these conditions to get the data type of a selected field by using its name property.  For example the data type "short" was used in the LastName field.  



Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>