954,582 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

vb code for data transfer

thanks a lot
I need another code where once I enter a text into a text box i need the data to be transferred to MS access without erasing any data(a new record is to be created)

ashwin149
Newbie Poster
9 posts since Dec 2010
Reputation Points: 10
Solved Threads: 0
 

Depends on whether you are using ADO or a data control.... Please be more specific with your question.:)

AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350
 

I'm fine with both but I prefer using a data control because I can handle it much easier than a ADODC

ashwin149
Newbie Poster
9 posts since Dec 2010
Reputation Points: 10
Solved Threads: 0
 

Then use -

Data1.AddNew
'All your text boxes's data source should be set to Data1

Data1.Update
AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350
 

Thanks a lot AndreRet.Ur code worked
I just wanted to know if
1.This could work with 1 command button(I had to enter .add new & .Update in different command buttons to make it work)
2.Different events produce different results(For eg.Click event causes data to be updated and Mouse over causes data to B erased(Cancel Update))

ashwin149
Newbie Poster
9 posts since Dec 2010
Reputation Points: 10
Solved Threads: 0
 

Thanks a lot AndreRet.Ur code worked
I just wanted to know if
1.This could work with 1 command button(I had to enter .add new & .Update in different command buttons to make it work)
2.Different events produce different results(For eg.Click event causes data to be updated and Mouse over causes data to B erased(Cancel Update))

ashwin149
Newbie Poster
9 posts since Dec 2010
Reputation Points: 10
Solved Threads: 0
 

It's a pleasure.:)

I'd rather have different code under different command buttons. That way you know that you will not code yourself into errors.:)

AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350
 

Is it possible to add an item to a list of a combo box during run time
I went through all the properties of the combo box but the error says "Argument not optional"
I require a code for this(I enter the data in a text box and I want it to be transferred to the combo )
I use vb6

ashwin149
Newbie Poster
9 posts since Dec 2010
Reputation Points: 10
Solved Threads: 0
 

Yes it is possible. You do however need to open a new post with the question. I'll answer with a sample from there. Happy new year.:)

AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350
 

Sorry, I did not get u

ashwin149
Newbie Poster
9 posts since Dec 2010
Reputation Points: 10
Solved Threads: 0
 

This post has been closed/solved. You are asking a new question on this old and solved post. You will have to open a new question from which we will reply and try and solve your problem.:)

AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350
 

how do i do that?
and thanx a lot to all who have helped me(specially AndreRet)
my project submission in on 20th

ashwin149
Newbie Poster
9 posts since Dec 2010
Reputation Points: 10
Solved Threads: 0
 

Just go into VB4/5/6 forum, at the top is an option "Start a new thread". Click on that and away you go.:)

AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You