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

Insert data into combobox in different forms

i have a combobox and few textboxes in Form1.
i inserted new item into combobox by entering new item in one of the textbox.
i manage to add item into combobox in Form 1.
But how can i achieve if the item i added in Form1 to be inserted automatically into Form2 combobox as well after the operation in Form1. How can i achieve that?

i am using vb and mysql as database

gd740
Newbie Poster
10 posts since Oct 2011
Reputation Points: 10
Solved Threads: 1
 
Me.ComboBox1.Items.Add("Form1")
Form2.ComboBox1.Items.Add("Form1")
codeorder
Posting Virtuoso
1,915 posts since Aug 2010
Reputation Points: 255
Solved Threads: 384
 

thanks for the reply.
it works, but then it only insert into the combobox during runtime, and when i execute it again, it wont appear for the second time..
how should i insert into the mysql database so that it will exist for the next execution and exist in my database?
i am a beginner ..
thanks in advane :)

gd740
Newbie Poster
10 posts since Oct 2011
Reputation Points: 10
Solved Threads: 1
 

>>how should i insert into the mysql database so that it will exist for the next execution and exist in my database?
That is an entirely new question and since I'm Not a db(database) coder, I have no idea on how exactly someone would save and load items from mySql . Before starting a new thread, try searching this forum first.

AndAlso, glad I could help.:)

codeorder
Posting Virtuoso
1,915 posts since Aug 2010
Reputation Points: 255
Solved Threads: 384
 
Me.ComboBox1.Items.Add("Form1")
Form2.ComboBox1.Items.Add("Form1")


Due you have any idea that Is this type of access working in java also?

selina12
Newbie Poster
13 posts since Nov 2011
Reputation Points: 10
Solved Threads: 0
 

(clears throat)
.Did you just say Java in a vb.noob forum? Misspelled the question also? Want a cookie?, cause I thing JavaScript can do that just fine.

codeorder
Posting Virtuoso
1,915 posts since Aug 2010
Reputation Points: 255
Solved Threads: 384
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: