Reputation: 0 Apprentice
- New Members
- Active Posts:
- 4 (0.01 per day)
- 09-September 11
- Profile Views:
- Last Active:
- Sep 18 2011 10:11 AM
- Dream Kudos:
Posts I've Made
Posted 15 Sep 2011thanks for the tip i finally found the solution.The way that you do that is reference the other form.
Every time you reference a control on your form, e. g. Text1.Text = "Hello" you are implicitly referencing the form too. So this is equivalent to the last: Me.Text1.Text = "Hello". If you are on Form1, and want to reference ListView1 on Form2 without making Form2 the current form, you just have to specifically reference Form2, e. g.: Form2.ListView.ListItems.Add "Whatever".
Posted 10 Sep 2011Have a look at this, in particular the example given: http://msdn.microsof...6(v=VS.85).aspx . Now, I've never tried to see if doing a MoveNext will update the record as you appear to believe. I've always used the Update method, as seen in the example. There are times when you need to use it and times when you don't, and the doc is confusing as to what types of cursors need it. But a good indicator that you need it is that you aren't getting the record posted to your database.
thanks for the link. this is a different approach to adding data to my database but certainly helpful. my problem is that
the textboxes and the save button is in one form and the list view in another form. so i need to update the latter form to update the listview when i press the save button in the first form.
p.s the link was very helpul. i am going to use the code in next form. Thanks again
Posted 9 Sep 2011i am not sure and i am new to vb6 but i have read in a post earlier that some VB's doesnot work with
access 2010. it works only when you save the database as access 2000(.mdb) or access 2002-2003(.mdb) file in access 2010
- Member Title:
- New D.I.C Head
- Age Unknown
- Birthday Unknown
- Click here to e-mail me
messirayn hasn't added any friends yet.