I have a form with several "columns" that resembles an Excel spreadsheet. Because it is a form when you paste information into it you can only do one field (cell) at a time. However if I right click on the form and select (Change to datasheet view) I can paste entire rows.
Now for the problem. I don't want any menubar or toolbar showing in my application for my users. I hide them with the following code.
Then use a hidden button on my form to redisplay them so that I can work on the db.
The problem is that this code also disables the right mouse button so that you can't get to the datasheet view. You might ask, Well why not make the form display in datasheet view all the time? Some of my users are not very good at cutting and pasting and were making a mess out of the information. I do have one user that is very good and I have no problem allowing her to enter data via datasheet mode.
Does anyone know a way to hide the menu and toolbars and still retain the functionality of the right mouse click so that she can change from form to datasheet view? I would even take a command button event if it becomes necessary I just don't want to display the bars as it messes up the form layout.
Autoeng
Now for the problem. I don't want any menubar or toolbar showing in my application for my users. I hide them with the following code.
Code:
Dim I As Integer
For I = 1 To CommandBars.Count
CommandBars(I).Enabled = False
Next I
Then use a hidden button on my form to redisplay them so that I can work on the db.
Code:
Dim I As Integer
For I = 1 To CommandBars.Count
CommandBars(I).Enabled = True
Next I
The problem is that this code also disables the right mouse button so that you can't get to the datasheet view. You might ask, Well why not make the form display in datasheet view all the time? Some of my users are not very good at cutting and pasting and were making a mess out of the information. I do have one user that is very good and I have no problem allowing her to enter data via datasheet mode.
Does anyone know a way to hide the menu and toolbars and still retain the functionality of the right mouse click so that she can change from form to datasheet view? I would even take a command button event if it becomes necessary I just don't want to display the bars as it messes up the form layout.
Autoeng