Hello All,
I have an application with a Datagrid (dgMileage) that I am using to record business trips in. I am using a data base class so I am not using an ADODC, but setting the Datasource myself. Everything works great with the Datagrid except one thins I'm having problems trying to figure out how to do. If you could help me with this I would be greatly appreciative.
Here is what I am trying to do, I have a Column called MILES and one called AMOUNT, I also have a variable called curAmountPerMile that's a Currency that contains the Amount the Company pays it's employees per mile.
When I click on the last Row with the * by it and start keying in the data when I get to the MILES column and key in the number of miles, I would like to take that amount and multiply it by the curAmountPerMile variable and place the answer into the AMOUNT Column.
Example: I key 100 into the MILES Column cell and the curAmountPerMile variable is set to .50, I would like to have the application place 50.00 into the AMOUNT Column cell.
How do I get the 100 out of the MILES Column Cell, and how do I set the AMOUNT column Cell. Everything I've tried so far returns an Invalid Bookmark :-( error , this row is not in the Recordset yet, because your not finished keying it in, so HOW can you set a BookMark on it?
PLEASE HELP, any help would be appreciated Thanks in advance.
Ferlin.
I have an application with a Datagrid (dgMileage) that I am using to record business trips in. I am using a data base class so I am not using an ADODC, but setting the Datasource myself. Everything works great with the Datagrid except one thins I'm having problems trying to figure out how to do. If you could help me with this I would be greatly appreciative.
Here is what I am trying to do, I have a Column called MILES and one called AMOUNT, I also have a variable called curAmountPerMile that's a Currency that contains the Amount the Company pays it's employees per mile.
When I click on the last Row with the * by it and start keying in the data when I get to the MILES column and key in the number of miles, I would like to take that amount and multiply it by the curAmountPerMile variable and place the answer into the AMOUNT Column.
Example: I key 100 into the MILES Column cell and the curAmountPerMile variable is set to .50, I would like to have the application place 50.00 into the AMOUNT Column cell.
How do I get the 100 out of the MILES Column Cell, and how do I set the AMOUNT column Cell. Everything I've tried so far returns an Invalid Bookmark :-( error , this row is not in the Recordset yet, because your not finished keying it in, so HOW can you set a BookMark on it?
PLEASE HELP, any help would be appreciated Thanks in advance.
Ferlin.