hi

Lovi here..... I'm making a project on library management in vb. I have made the forms but I have a problem in coding. I want to do connectivity between the forms. Can anyone help me in this?????

Thanks....

Lovi, Please read my reply on the other OLD post. Thank you for creating your own.

Right, what do you have a problem with? Referencing controls on another form, just switch between forms, not sure what you need help on?

If forms then something like -

Unload Me 'Will unload Form1
When a button or other control is clicked put this code under that control -

Unload Me

Form2.Show 'You can use 1 or Modal after Form2 if you want. This places the form2 on top of the others and disable all the other forms except for Form2

'To reference a control on Form2, use -

Form2.Command1. ...'And whatever you need the command button to do.

I hope this helps with your question.

Edited 6 Years Ago by AndreRet: Change reply

hi
thanks for the reply.... I am confused in coding.... I have made 5 forms...
1-Introduction
2-Details of books
3-List of books, dividing them in different categories using list box
4-Books issued by candidates/faculty using option button.
5-Lost books by candidate/faculty using option button.

now my problem is- how to add and show the items in the list box.... also if m using the option button, what would be its coding in both the points???

I have to use the timer also which i will use in changing the forms.... please tell me its coding also...

Regards,
lovi

Lovi are you sure you are in the right section?

I think you want VB.net

As for your question you have to show some effort Please read the rules about Homework

Edited 6 Years Ago by finito: n/a

hi

yes m sure..... I have 2 make this project in vb only with ms access..... plzzz help me as I have to submit this project tommorow...

Edited 6 Years Ago by Lovi Aggarwal: n/a

Lovi, are you using VB6 or VB.Net? What version of access, 2000, 2003, 2007?

To your questions -

1-Introduction

Any problems here?

2-Details of books

Any problems here? Was the database created etc?

3-List of books, dividing them in different categories using list box

You will use something like -

Do while rsBooks.EOF = False
   List1.AddItem rsBooks!MyBook
Loop

4-Books issued by candidates/faculty using option button.

To use the optionbutton, use -

Option1(0).Value = True
'You will note that I am using an Index here, which is much faster to see which one was selected especially if you have quite a few. The code will be something like -
Select Case OptionButton(Index)

Case 0
'Code here
Case 1 'etc etc

5-Lost books by candidate/faculty using option button.

The same as above...

I have to use the timer also which i will use in changing the forms

I am not sure what you mean by 'Changing the Forms'? Do you need to show a different form by using a timer? If so -

'Under Timer1 add the following -
Unload Me 'If you want to unload Form1
Form2.Show 'Modal add 1 or 'Modal' etc

Does this answer most of your question?

Did the above codes help you towards your solution or do you need more information?

Saving and editing between 2007 and 2004 should not raise any errors, so your database tables and fields should be fine.

The above is for VB6, so that should solve most of your questions.

This article has been dead for over six months. Start a new discussion instead.