I can't get DLookup to use the RateCode string that was passed into the function in its criteria. The RateCode is a letter that corresponds to a certain rate schedule in RateTable. It is ignoring it for some reason. What am I doing wrong?
******
Public Function...
Ken,
Here are the details of my combo box:
Name - FIN
Control Source - FIN (in table Release Data Tbl)
Row Source - SELECT [Facility Common Names].[FIN], [Facility Common Names].[FCN] FROM [Facility Common Names]
Bound Column - 1
And the details of the text box I want to change
Name -...
Ken,
I'm trying to do something similar to this in a form, but whenever a try to put "txtBox = cboMyCombo.Column(1)" in the After Update line of the combo box, Access adds extra syntax to the line and it doesn't work.
Any ideas?
Thanks.
Ken,
Just got it to work. Had to change my DLookup line from
idTest = DLookup("[Vents To]", "PSV Data", "[Tag Number] = Forms![PSV Release Subform]![PSV Number]")
to
idTest = DLookup("[Vents To]", "PSV Data", "[Tag Number] = [PSV Number]")
Guess I didn't need that extra stuff in there...
Ken,
I put a break in the code so I could step through it. It seems that it is jumping from the DLookup line straight down to "MsgBox Err.Description" near the end of the code. Any ideas why it would trip up on the DLookup like that? I'm going to keep digging.
Thanks again for your help.
Ken,
Sure thing.
Here's the rundown - I open form "Release Calculation Form". "PSV Release Subform" exists as a subform in this form. I fill in all the relevant data in the form and subform, click the command button in the subform in order to open a report, and get the "canceled operation"...
Ken,
Thanks for the quick response. I'm sorry to report that the code substitution didn't work. I still get prompted for the value of "Parent.[Record No]" in the subform, and the "canceled operation" message in the main form.
Any other suggestions?
Hello all. I just found this forum; hopefully someone can help me with a problem I'm having.
I have a command button in a subform with VB code that executes upon clicking the button. The point of the code is to check a value on a table and determine which report should be opened. I'll post...
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.