I hope you all are having a good weekend.
I have a recordset with x amount of records that will have 30 fields each. I would like to have the records input into a 2D array. I am using the GetRows method, but VB is inputting the records in reverse order so to speak. Instead of having the array populated (i.e. rows, columns) like a normal database record, my array is populated (columns, rows) in reverse, so to speak. How can I get it populated in the right fashion?
I also would like some advice about the method I am using. My app allows the user to search for records in the database by a member last name. The data in the recordset then populates a FlexGrid to allow the user to choose a record to view on the input form. My design calls for the data in the recordset to populate an array then for the app to take the data in the array and populate the objects on the input form. Would it be easier for me to use the recordset to populate the objects on the input form and bypass using the array? If so, I tried to make my recordset public, but the search function would not work (the sub procedure that contains the recordset is public).
Any suggestions?
Thanks,
Rob [Vader2]
I have a recordset with x amount of records that will have 30 fields each. I would like to have the records input into a 2D array. I am using the GetRows method, but VB is inputting the records in reverse order so to speak. Instead of having the array populated (i.e. rows, columns) like a normal database record, my array is populated (columns, rows) in reverse, so to speak. How can I get it populated in the right fashion?
I also would like some advice about the method I am using. My app allows the user to search for records in the database by a member last name. The data in the recordset then populates a FlexGrid to allow the user to choose a record to view on the input form. My design calls for the data in the recordset to populate an array then for the app to take the data in the array and populate the objects on the input form. Would it be easier for me to use the recordset to populate the objects on the input form and bypass using the array? If so, I tried to make my recordset public, but the search function would not work (the sub procedure that contains the recordset is public).
Any suggestions?
Thanks,
Rob [Vader2]