| database operations in forms [message #276102] | 
			Wed, 24 October 2007 00:01   | 
		 
		
			
				
				
				
					
						
						gayathricg
						 Messages: 3 Registered: October 2007 
						
					 | 
					Junior Member  | 
					 | 
		 
		 
	 | 
 
	
		hi 
 
i am very new to forms. I need to perform the database operations(insert delete update) on a form with master block and detail block. 
 
I couldn perform the delete operation on child record alone. 
i.e. if the cursor is in child record and i press delete button, only that record should be deleted. 
 
i tried  
delete_record; 
standard.commit; 
 
but its not working. 
 
Also is there any option to execute sql query when i click a button? 
 
please help me out.Thanks in advance.
		
		
		
 |  
	| 
		
	 | 
 
 
 | 
	| 
		
 | 
	| 
		
 | 
	
		
		
			| Re: database operations in forms [message #276146 is a reply to message #276122] | 
			Wed, 24 October 2007 02:10    | 
		 
		
			
				
				
				
					
						
						gayathricg
						 Messages: 3 Registered: October 2007 
						
					 | 
					Junior Member  | 
					 | 
		 
		 
	 | 
 
	
		hi  
thanks for the reply 
i created the form using wizard only. 
and the task bar buttons do the functions.  
but wat should i code if i want to delete the current record on clicking a button.  
 
please help me out 
 
thanks in advance 
 
		
		
		
 |  
	| 
		
	 | 
 
 
 | 
	| 
		
 | 
	| 
		
 |