As I am building a pos and inventory software in vb 6.0 with Ms-Access as database, I am building the face of the software where I have one MDImain form with toolbar and menus and related some mdichild form holding different informations (I have attached the image). What now I want is that when I click the button in the toolbar of the MDImain form, another form related with mdichild form will open and help me to done the related task. For example, when the Catagory mdichild form is open under MDIMain and I click the "New" button in the toolbar of the MDIMain, the form for enter new catagory will appear and give me the scope to add new catagory in the database. I tried the following code,
Dim frm As Form For Each frm In Forms If Not frm.Name = "MDIMain" Then Select Case frm.activeform Case "frmcatagoryae" Load frmcatagory End Select End If Next frm
but failed to complete my desired task. Any suggestion will be very helpfull.
Although the first row of the lisview is selected, I want to accomplish that for further to modify or delete record. My first concern is how can I manage to add record by clicking to the new button and by opening another form to add record.