PDA

View Full Version : From database to listbox to new database...


YaymeQ
07-24-2009, 09:26 PM
Hi guys,
I have a database with golf courses in it. I have another database with course rounds played in it. I was able to use the golfcourse database to populate a listbox with golf course names. Now I want the selected name to be inserted into the course rounds played database, along with the other information about the round. Is this possible? I've searched google and only came up with very confusing stuff. Right now when I try it says that I cannot enter a null value into the database which obviously means it's not connected right. I've tried using Bind but I'm sure I've got that wrong as it tells me listboxes cannot be bound. I don't have a clue what else to try. I just got out of an asp.net beginner's class and that was not something we covered. If you need my code I'd be happy to post it for you. I just thought a simple explanation would be enough since all I need to know is what command to use and maybe the sintax (Though I could look that up myself if need be)

YaymeQ

pons_saravanan
08-23-2009, 02:44 PM
Hi guys,
I have a database with golf courses in it. I have another database with course rounds played in it. I was able to use the golfcourse database to populate a listbox with golf course names. Now I want the selected name to be inserted into the course rounds played database, along with the other information about the round. Is this possible? I've searched google and only came up with very confusing stuff. Right now when I try it says that I cannot enter a null value into the database which obviously means it's not connected right. I've tried using Bind but I'm sure I've got that wrong as it tells me listboxes cannot be bound. I don't have a clue what else to try. I just got out of an asp.net beginner's class and that was not something we covered. If you need my code I'd be happy to post it for you. I just thought a simple explanation would be enough since all I need to know is what command to use and maybe the sintax (Though I could look that up myself if need be)

YaymeQ

When you say two databases,

Are they from two database tables?
or
Are they from tow different databases enirely?