The simplest thing to do is simply click the desired tab (otherwise, the subform will appear on all tabs-as ZOR pointed out). Then use the "Subform" wizard to add the desired subform to the appropriate tab. Use the wizard to determine the linked fields.
If the subform is already in place, go...
If I understand, as a result of deleting the bottom record from the subdatasheet, it is adding the 'first' record from a primary table into the subdatasheet?
Is it truly adding the entire record, or is it only the date field that is filled...if so, could it be a default value on the date field...
I tried your solution (which was similar to one I tried earlier) without success. The focus simply moves to the assigned field (Provsvc) without displaying any message.
Is there another approach perhaps?
I have a combo box that is used to search for a particular vendor. I want to display a simple Message box if the record is not found. How would I do that?
Below is the code that does the searching. It was created using the Combo Box Wizard.
Dim rs As Object
Set rs =...
Whoa, we have a winner.
[Vendor].Value = [Vendor].ItemData(1)
I had to change the zero value to 1. When zero, it pulled the column heading. Although, if I had column headings turned off, I wonder if it would have worked? No bother...thanks for the help. You're a life saver.
O.K. I tried the second approach with limited success.
Here's the total story.
I have a filter on the drop-down list that causes the list to show only those vendors from the consumer's county. The county is on the main form. It appears (I could be wrong) as if your second approach is pulling...
Sure,
Save_Referral:
DoCmd.RunCommand acCmdSaveRecord
If [Reason] = "NP / LC = No Preference / Lowest Cost" Then GoTo Provider_byDate Else GoTo Provider_byCounty
Provider_byDate:
[Vendor].SetFocus
After the last line is where I tried your code suggestion. It did not...
That sounds logical, but the RowSource knows which box to sort based upon the fact that it is attached to the desired combo box.
How do I get the AfterUpdate event of the first combo box to know which combo box to sort?
[Combo2] = ?
Thanks
Hi Everyone,
I have two combo boxes on my form. When the user makes a selection, I want the focus to move to the second combo box. This is simple enough.
However, is there a simple way to have Access automatically select the first entry in the second combo box, rather than having the users...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.