Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » VB Express and SQL Express
Closed Thread
Old 07-25-2008, 11:29 AM   #1 (permalink)
Lexluethar's Avatar
 

Join Date: Jul 2008

Location: Kansas City

Posts: 2,339

Lexluethar has a spectacular aura aboutLexluethar has a spectacular aura about

Send a message via AIM to Lexluethar
Question VB Express and SQL Express

Okay, so I gave up on a program I was creating about 3 months ago and I think i'm going to give it another crack.

The problem I ran into was passing variables from my vb form (usually text boxes and combo boxes) to my sql database. I've got the connection string on the forms I use, and when directly connecting a text box to one of my db tables it works great (i've added tons of data this way and it passes correctly to the table). My issue is I want the user to enter some data, i want to validate that data and throw out any errors that are needed, then assuming all is well send that data to a certain field (row/column) in my SQL database. Then at some point I will need to extract that value when needed.

See I could do most of this by just directly connecting the text boxes, but validation becomes an issue, and holding onto those values becomes difficult too. So i'd like to just be able to have a text box, the user enter the data, I capture that data (and validate), then when I want to (probably at the end of a form) pass that data to where it needs to go in the table.

What am i missing?! How do i do this? I have the variable w/ the value, but i don't know how to pass it, the connection is open but i don't know the command to pass a particular variable/variables to where i want them.

Sorry if some of this is vague, i can be more specific once i get home and open it up. Any insight or input would be greatly appreciated - my sanity hangs in the balance!

Thanks again!
Lexluethar is offline  
Old 07-28-2008, 10:26 AM   #2 (permalink)
Lexluethar's Avatar
 

Join Date: Jul 2008

Location: Kansas City

Posts: 2,339

Lexluethar has a spectacular aura aboutLexluethar has a spectacular aura about

Send a message via AIM to Lexluethar
Default Re: VB Express and SQL Express

Seriously? No one?

Too vague?
Lexluethar is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On