I have been using VB.Net for a little while now, but I just started needing to write code to put information in a SQL Server database. I have two tables that I need to add information into. I know that I have to use an Insert statement, maybe I need to use two insert statements. I understand how to open a connection to the database. I just do not understand how to use ADO.NET in VB.NET to get information from text boxes on my form into the database. I might also add that both tables use identity columns and one table has the idenity column of the other table as the foriegn key. If someone could please give me an example I would really apprieciate it.
Jesi523 0 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.