MsAccessNL
Member
- Local time
- Today, 02:17
- Joined
- Aug 27, 2022
- Messages
- 219
If I open a table and type in the immediate window: ?screen.activedatasheet.form.name, i get the Table name. The next step was to get all the properties of this table/form and if i could manipulate them. It appeared to work. So my question to the experts on this forum. Is a table view in reality a form in datasheet view?
Using: screen.ActiveDatasheet.AllowAdditions = False, seems to work.
	
	
	
		
 Using: screen.ActiveDatasheet.AllowAdditions = False, seems to work.
		Code:
	
	
	Public Sub TableForm()
    Dim frm As Object
    Dim prp As Property
    'open a table first
    Set frm = Screen.ActiveDatasheet
    Debug.Print frm.Name
    For Each prp In frm.Properties
        Debug.Print prp.Name, prp.Value
    Next
End Sub
			
				Last edited: 
			
		
	
								
								
									
	
		
			
		
		
	
	
	
		
			
		
		
	
								
							
							 
	 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		