I use an unbound form as a Menu/Navigation for my application. The menu form has VBA "on click" events for the labels. That is it.
When I add it as a subform to a split-form that is bound to one of the tables, the "menu" subform displays as a sub-datasheet.
When I go to the datasheet view to remove the sub-datasheet the "Remove" button is greyed out.
I've checked the main form and the menu sub-form for Subdatasheet Expanded "NO" and Subdatasheet Height "0"
I know this is probably going to be something painfully obvious that I seem to be overlooking but I've been searching for a solution all morning.
Thanks, people.
Did you add your navigation form using design view? For example, here is my split form with the navigation form added, note that the navigation form is set to display Single Form.
Here is the form displayed:
Related
I have a mainForm than contains a subForm control. The subForm control has a report as its dataSourceObject. I like to put report there as it hides the blank fields and gives a nice summary of items. However, when there are not enough items to populate the report then I see annoying spaces on the bottom and right side of the subForm control.
Does anyone how can I avoid it?
Picture is attached:
I have a main form with only 1 field, in a combo box. I have a subform linked to the main form on that field. The logic is all working fine - when I select an item from the main form I get the correct results in the subform.
The problem I have is the appearance of the form. I wanted both the form and sub form to be visible all the time. Instead, I get only the main form, with a "+" next to each record. Selecting the "+" then pops up the appropriately filtered subform.
I cannot find any menu selection s that are driving this format or allow me to change it to what I want.
To have the subdatasheet always expanded by default you can set the Subdatasheet Expanded (in the Format options) property to yes.
Any ideas on how to keep the scrollbar/focus on the top of a form?
I have continous form with many textboxes and listboxes that make the user scroll down the form no matter the resolution size of their screen. Ever since I implemented a Listbox with a rowsource query that will vary on the record, every time I change records the vertical scrollbar of the form will change focus to the bottom of the form.
I tried changing focus to controls on the top of the page or changing ways to change the rowsource of said listbox (using vba code like listbox.RowSource = theSQLQUERY or making the rowsource of the listbox with the sqlQuery). It used to work before I implemented that sourcecode, it had a sourcecode before and the problem never happened.
The rowsource query looks like this :
where active_flag = 0
My question is, How can I keep the vertical scrollbar/focus on the top of a form taking into account the listbox that changes rowsource?
The key is:
Ever since I implemented a Listbox with a rowsource query that will vary on the record, every time I change records the vertical scrollbar of the form will change focus to the bottom of the form.
Your code is iterating through every single record, from top to bottom. It goes to the bottom because that's where the code stops. That's fine, it's how Access works.
So, after that code, add the following:
Me.Recordset.MoveFirst
Or
DoCmd.GoToRecord acDataForm, Me.Name, acFirst
I can't seem to figure this out. I have a subform displaying continuous forms with a vertical scrollbar. When I click the scrollbar to move to a different record, the record never receives focus. The focus is still on the control of the record I left.
How to I control the record focus after using the scrollbar? The subform's On Current event does not fire.
Thanks!
The vertical scroll bar in a continuous MS Access form does not navigate among records. It simply changes which records are visible on the form. The black triangle within the record selector on the left side of the form indicates which record is currently "selected."
You can navigate records (ie, control the record focus, as you say) several different ways:
Click on the record selector* (the gray rectangle to the left of the form detail section)
Click on any enabled control within the form detail section
Use the navigation controls* at the bottom left of the form
Use [Tab], [Enter], or arrow keys to move through the individual controls on the form detail section; when you reach the last control in the tab order, your next [Tab]/[Enter]/[Down Arrow] key press will take you to the next record
* Note that both the Record Selectors and Navigation Buttons may be turned off on your form. On the form property sheet, ensure Record Selectors: Yes and Navigation Buttons: Yes.
I have a split view form with a subform in it. In the datasheet part of the split view Access displays a plus (+) that allows the user to display the subform for that record.
I want to prevent this behavior. How can I hide the subform from the datasheet section, but not the form section?
Even when all the subform columns are hidden the plus remains, even though it expands to show an empty subform.
Can the datasheet section be handled independent of the form view?
Try changing the table (split form's recordsource) properties (see picture below).
This may not be ideal solution since it will affect all forms (with datasheet views) that are based on the underlying table, though.
insert new (blank) subform (set visible NO)
set it lowest Tab Order among subforms (must be the first)
plus sign disapears