I have DataGrid1 based on a ADO Recordset that displays Each Account and Some Info about that Account. So each row is a different account. In column 1 is the account Id (CON_ID). In the double click event of DataGrid1 I have placed Form2.Show and want this to display information for The account selected.
I have tried using frmAccounts.DataGrid1("CON_ID" in Form2 but I get Wrong Number of Arguments or Data Member Not Found.
How Do I refer to this field or do I need to pass it to the new form as an argument?
A Second Question:
I would like my forms to do different things in difgferent situations. Basically I want to pass a value to a form and depending on that value have th form operate differently(such as an editing mode or just a display mode OR To show certain buttons when opened from FormA but dont show them when opened from formB)
I tried placing code in Load Event of the form but When I place an argument I get an error saying Procedure declaration does not match description of event or method having the same name.
How can I accomplish this.
Thanks
I have tried using frmAccounts.DataGrid1("CON_ID" in Form2 but I get Wrong Number of Arguments or Data Member Not Found.
How Do I refer to this field or do I need to pass it to the new form as an argument?
A Second Question:
I would like my forms to do different things in difgferent situations. Basically I want to pass a value to a form and depending on that value have th form operate differently(such as an editing mode or just a display mode OR To show certain buttons when opened from FormA but dont show them when opened from formB)
I tried placing code in Load Event of the form but When I place an argument I get an error saying Procedure declaration does not match description of event or method having the same name.
How can I accomplish this.
Thanks