Hi there,
I am very new to the Visual Basic. I want to build a simple aplication which will just only have a contact database.
The contact table will basically have name, company, and contact details like address, email, tel and fax.
I wanted to build this application as LIST and FORM structure. The LIST will show just the name, company and email in a grid or whatever format. The user can be able to search using all the 3 fields which are placed just above each column. When the user double clicks a row in the grid it needs to go to the FORM(detail) page where user can see all the information from the database for that particular record. Then the user should be able navigate NEXT or PREVIOUS and to EDIT or DELETE that particular record. From the FORM the user should be able to switch back to the LIST by clicking a button in the FORM and he should stay in the same record as he was in the FORM ( through the FORM he might have navigated to some other records by clicking NEXT or PREVIOUS buttons)
I have just started this project using MSHFlexGrid where the data is pulled from a ADO recordset that I create on the fly during the Form load. I am keeping the Connection(Conn) and Recordset(RS) object in a global variable. The user can search by each field in the LIST. The user can also sort the grid by double clicking on fixed row header of the grid using grid's sort method. Also when he double clicks on any other row I use the RS.Move MSHFlexGrid.Row method to go to that particular record and populating the text fields with recordset's current record value in the FORM page (it is not working if the user sorted the Grid prior to going to the FORM page. it is going to a wrong record)
I am not at all sure my approach is correct. I need your kind advise on this to show me what is the proper approach to accomplish this solution. Do I need to use any other grids or what?. Your help in this will be highly appreciated.
Thanks
Hameed
I am very new to the Visual Basic. I want to build a simple aplication which will just only have a contact database.
The contact table will basically have name, company, and contact details like address, email, tel and fax.
I wanted to build this application as LIST and FORM structure. The LIST will show just the name, company and email in a grid or whatever format. The user can be able to search using all the 3 fields which are placed just above each column. When the user double clicks a row in the grid it needs to go to the FORM(detail) page where user can see all the information from the database for that particular record. Then the user should be able navigate NEXT or PREVIOUS and to EDIT or DELETE that particular record. From the FORM the user should be able to switch back to the LIST by clicking a button in the FORM and he should stay in the same record as he was in the FORM ( through the FORM he might have navigated to some other records by clicking NEXT or PREVIOUS buttons)
I have just started this project using MSHFlexGrid where the data is pulled from a ADO recordset that I create on the fly during the Form load. I am keeping the Connection(Conn) and Recordset(RS) object in a global variable. The user can search by each field in the LIST. The user can also sort the grid by double clicking on fixed row header of the grid using grid's sort method. Also when he double clicks on any other row I use the RS.Move MSHFlexGrid.Row method to go to that particular record and populating the text fields with recordset's current record value in the FORM page (it is not working if the user sorted the Grid prior to going to the FORM page. it is going to a wrong record)
I am not at all sure my approach is correct. I need your kind advise on this to show me what is the proper approach to accomplish this solution. Do I need to use any other grids or what?. Your help in this will be highly appreciated.
Thanks
Hameed