View Single Post
  #1 (permalink)  
Old March 20th, 2006, 11:08 AM
sirmilt sirmilt is offline
Authorized User
Points: 406, Level: 7
Points: 406, Level: 7 Points: 406, Level: 7 Points: 406, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2005
Location: Florida
Posts: 88
Thanks: 4
Thanked 0 Times in 0 Posts
Default Populate a Variable From Access Table

I am trying to populate a value in an Access database to a variable, rather then a control and can't figure out how.

This code works fine for text boxes:
txtAddress.DataBindings.Add("Text", myDv, "Address")

The text box is filled with the content of the field Address. The DataView is myDv.

This code doesn't work:

dblFacor.DataBindings.Add("Text", myDv, "Factor")

The DataBindings is not available to me. "Factor" is the field name and dblFactor is a variable declared with a double datatype.

Any suggestions as to how to handle this?

Reply With Quote