Dim stringFox As String = "Provider=VFPOLEDB.1;Mode=Share Deny
None;Mask Password=False;Cache Authentication=False;Encrypt
Password=False;Collating Sequence=GENERAL;DSN='';Data Source=" +
txtPath.Text
Dim confox As New OleDbConnection(stringfox)
Dim oString As String = "SELECT...FROM .... " 'Very basic
Dim oleda As New OleDbDataAdapter(oString, confox)
Dim foxtab As New DataTable()
oleda.Fill(foxtab)
the code "oleda.Fill(foxtab)" throws this Exception message -" The
provider could not determine the Decimal value. For example, the row
was just created, the default for the Decimal column was not
available, and the consumer had not yet set a new Decimal value."
Can anyone help me?!
Can you narrow the problem down to a particular row that is giving you
errors? Do you know the data type of the problem field in the Fox table? Do
you know what data type it is coming across as? Are you perhaps dealing with
NULL values? How about Empty values? An Empty VFP numeric field should
evaluate to zero but there's always a chance of a problem.
--
Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
cindy.wi...@mvps.org, www.cindywinegarden.com
"Miguel" <domi...@cabinf.nqf.pt> wrote in message
news:40e55044.03070...@posting.google.com...
> Hi, I'm trying to read data from several VFP7 tables with VB.net and
> this peace of code works with no problems in more than 30 tables but
> there are some tables where I get an error.. the table structure is
> similar I don't see the problem...although I have a lot of blank
> fields records in this tables .
Thanks for the help
Miguel
"Cindy Winegarden" <cindy.wi...@mvps.org> wrote in message news:<#DdqdmXR...@TK2MSFTNGP11.phx.gbl>...
I'm glad you found something that worked. I'm new to .NET also and I've got
a lot to learn.
--
Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
cindy.wi...@mvps.org, www.cindywinegarden.com
"Miguel" <domi...@cabinf.nqf.pt> wrote in message
news:40e55044.0307...@posting.google.com...