How to use SUM as a value | 
	
									
	9/3/2005 00:18:49 | |
| ASPRunnerPro General questions | ||
| 
	 
		
 D 
	 
		
dancerdog3 author
	 
		
I am testing ASPRunner and think it is great! <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=1809&image=1&table=forumtopics' class='bbc_emoticon' alt=':D' />   | 
	
									
	||
| 
 
 | 
						 
							Sergey Kornilov admin 9/5/2005 | 
| 
 
 Hi,  | 
											|
| 
 
 D 
 | 
						 
							dancerdog3 author 9/5/2005 | 
| 
 
 I did not figure out the Calculate syntax. But, I did modify the SQL so that the Sum of hours shows up. But, now the "Edit" "View" "Copy" and link to the sub-table "apply" do not work.  | 
											|
| 
 
 | 
						 
							Sergey Kornilov admin 9/5/2005 | 
| 
 
 I'm not sure what exactly you plan to Edit here.   | 
											|
| 
 
 D 
 | 
						 
							dancerdog3 author 9/6/2005 | 
| 
 
 I am not explaining this very well. :blink Sorry. I will try again.  | 
											|
| 
 
 | 
						 
							Sergey Kornilov admin 9/6/2005 | 
| 
 
 I understand your tables structure now however it's still not clear what you need to edit.   | 
											|
| 
 
 D 
 | 
						 
							dancerdog3 author 9/7/2005 | 
| 
 
 I need to be able to edit the 'prepaid' and the 'apply' tables. The link between them is the 'prepaid.ID', not the company ID. I need to track the single purchase of prepaid hours, and also track the multiple instances that these hours were used.  | 
											|
| 
 
 | 
						 
							Sergey Kornilov admin 9/7/2005 | 
| 
 
 You can achieve what you looking for if you use three tables, using tblCompany as a master while tblApply and tblPrepaid are details. Connect them using CompanyID which is more logical. Display master table info on details pages to see amount of prepaid and used hours.  | 
											|
| 
 
 D 
 | 
						 
							dancerdog3 author 9/8/2005 | 
| 
 
 First - Thank you for your input. Your support has been fantastic.  | 
											|