David44Coder
Member
- Local time
 - Tomorrow, 03:29
 
- Joined
 - May 20, 2022
 
- Messages
 - 137
 
Could I have an example of the correct use for .OrderBy ? Currently giving error Invalid use of property
Oranges is the control source for textbox Text0. It is a Number field in the Forms RecordSource table
	
	
	
		
 Oranges is the control source for textbox Text0. It is a Number field in the Forms RecordSource table
		Code:
	
	
	DoCmd.OpenForm "frmShow", acFormDS
 With Forms![frmShow]
.ShortcutMenu = False
 .OrderBy !Oranges ', Asc
 .Caption = "Testing"
End With