hi everyone! this is my first time to post here and I'm glad to be a member of vbforums.com! i'm a beginner in programming and in vb.net platform...I'm having problems with comboboxes and textboxes.My problem is, i have a dbase in ms access and i bound the table productlist to my combobox which displays the productIDs. What i want to happen is that when a user selects a productID from the combobox, the other details in the productlist table corresponding to the id selected be displayed in the textboxes. I know this is simple but i just can't figure it out...there are some threads here that is somehow similar to my problem but I tried it and it didn't work...please help me! thanks in advance!
thank you so much for replying! just wondering if you have a version for this code in ms access.=) if you don't this will also be fine...i'll look up for references to be able to convert your codes...thanks so much! take care!
sort of. i mean i want to know can i use sqlconnection() object in access and other sqlother_objects. i don't know much about this thing. is it possible? and if so, how? thanks...
If you mean WITH access, then yes, you'd use it just the same with all databases. THe only major difference would be your connection string. Do you know ADO.NET?
MS Access. can i use sqlconnection() and other sqlobjects? my wild guess is that MS Access is for oledb [and other ole provided] mysql is odbc. help me mate. i don't know much about this. thanks.
i was successful in connecting my access database but i had this error as the form is being loaded:
An unhandled exception of type 'System.InvalidCastException' occurred in system.data.dll
Additional information: The data value could not be converted for reasons other than sign mismatch or data overflow. For example, the data was corrupted in the data store but the row was still retrievable.
by the way, the data that i'm trying to retrieve have currency datatypes as well as string datatypes. i hope you could still help me.thanks in advance.
Originally posted by brown monkey MS Access. can i use sqlconnection() and other sqlobjects? my wild guess is that MS Access is for oledb [and other ole provided] mysql is odbc. help me mate. i don't know much about this. thanks.
I don't believe that it is possible to use .NET code in MS-Access forms. I think it still uses VBA. So the answer would be no, not possible.
[brown monkey] is this a declaration? sorry i'm really new in programming. please bear with me. What i did is i searched for the format you gave me and change the getInt32(0).tostring to getvalue(0).tostring. Is that right?