This is good to know. I will start using .Equals(). I will need to research other methods that are more efficient.
Not suprised. I am new to programming in general. I need to do some reading on typed vs untyped datatables. The reason why I did it that way was because I didn't know any...
I get the error Dr.WinningDrawingColumn "is not a member of system.data.row"
If Dr.WinningDrawingColumn = Me.TextBox1.Text Then
No clue why that does not work.
This is the first time that I have tried to loop through a datatable. I know there are better methods to count rows but I was making sure that the loop worked. My next step is to take a value (TextBox1) and compare it to a value in each row of the datatable (tbl_WinningNumbers).
Dim...
The trouble I am having is understanding the two parts of the of the code (highlighted in bold)
drNew.Item("Picked") = "Picked"
The first "Picked" in this case appears to be the name of the field in the table. The second "Picked" is the value is being attemped to be inserted into a bound...
Need some help with adding a row to a data table with a data type of date and number type. All the examples I find are for fields that are strings. Here is the code:
drNew.Item("Unique Key") = "Unique Key" 'number type, does not work
drNew.Item("Player") = "Player" 'string type, works...
Doh!! It did not click when you said Property but I can not locate "FormatString property" in the properties box. That may explain why I did not understand your previous post.
I reviewed all the properties in the box and none of them seem to fit FormatString.
Sorry for understanding.
Thanks for the in-depth reply Jmc. I am pretty new to programming in general so this helps out alot. I used the link below and see several examples, however all of these code examples seem to print messages and not format a bound combo box.
I think my main problem is not understanding where...
Have combo box that is binded to a date field in an Access database. For the life of me I can not get rid of the time at the end.
I have the Data Type set to Date/Time in Access and the format is Short Date. All the dates are entered as mm/dd/yyyy. The value in the dataset is set to Date...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.