303factory
Registered User.
- Local time
- Today, 15:35
- Joined
- Oct 10, 2008
- Messages
- 136
Hi
I'm trying to get my subform to switch between form view and datasheet view with the following commands:
DoCmd.RunCommand acCmdSubformDatasheetView
DoCmd.RunCommand acCmdSubformFormView
I'm getting the error:
'The command or action 'SubformDatasheetView' isn't available now.'
The command is called from a button on the parent form, allowdatasheetveiw on the subform and parent is set to yes.)
The strange thing on a different parent form with the same subform, the command works fine. I cant work out what the difference between the two circumstances are! Any suggestions?
Thanks
I'm trying to get my subform to switch between form view and datasheet view with the following commands:
DoCmd.RunCommand acCmdSubformDatasheetView
DoCmd.RunCommand acCmdSubformFormView
I'm getting the error:
'The command or action 'SubformDatasheetView' isn't available now.'
The command is called from a button on the parent form, allowdatasheetveiw on the subform and parent is set to yes.)
The strange thing on a different parent form with the same subform, the command works fine. I cant work out what the difference between the two circumstances are! Any suggestions?
Thanks