|
|
![]() |
#1 | ||
Nerd with social skills
![]() |
![]()
OK. So I slept on it for the night and came in ready to try to fix this error. It stops giving me the "Object Required error if I rearrange the formula from this:
Quote:
Quote:
SO...what I have done instead is set up a separate, hidden set of checkboxes that will run as soon as the user opens the form. It will populate the checkboxes from tblUserPCE/tblUserDisposition into frmNewUser. I copy/pasted the exact DLookups that weren't functioning before...and now they work perfectly. This is a temporary, ugly fix. There is some issue with my syntax. I do not understand why it is not accepted Dlookup()=Yes and is instead forcing Yes=Dlookup(). I also do not understand why Yes=Dlookup() breaks the DLookup() In summary: Access sucks. Posted via Mobile Device |
||
![]() |
![]() |
![]() |
#2 | |
Lets Go Buckeyes!
![]() |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#3 | ||
Nerd with social skills
![]() |
![]() Quote:
![]() I just had a thought. Maybe instead of having it check all of them at once I should have them checking every time the user updates a given field...that might work...I'll be back in a few. Time for more testing. EDIT: OK. If I instead run a code that looks like this: Quote:
WHY DOES THIS WORK, BUT MY FIRST SOLUTION DOESN'T. *rage* Posted via Mobile Device |
||
![]() |
![]() |
![]() |
#5 | |
Nerd with social skills
![]() |
![]()
I graduated with a double major in accounting and finance. I did this because I know I don't have the patience for programming
![]() PS - I ran into another 424 error. Quote:
Posted via Mobile Device |
|
![]() |
![]() |
![]() |
#6 | |
Adjusting to the Life
|
![]() Quote:
What datatype is [Other]? Bit, string/text, integer? Same question with [Hanlding] and [Production]? What datatype are they? VB and all it's variant is not too clear between take this value and assign to this variable VS is this value equals to this value? In your case, Dlookup() = Yes Access is trying to interpret the above statement and making a guess that you actually want to assign the result of DLookup to the variable Yes (this is a variable, correct? That's why it's telling you to make a switcherroo to Yes = Dlookup(). With regards application security, you should always have some sort of a security in your application, regardless of who will be using them. If you need help, feel free to send me a message. |
|
![]() |
![]() |
![]() |
#7 | |
Nerd with social skills
![]() |
![]() Quote:
Crap. What I was stating for the "then" really should have remained as part of the if statement. If (this box is checked) and (the dlookup shows authorization for the user to check that box) then (nothing? is there a way to say continue as usual?) else (error statement & exit sub). It was completely a formatting issue on my end. I've only been using access for about 2 weeks which is why it probably didn't pop out to me. The security in place is an in-db login and user rights list. Once the user logs in they are tied to their account which is assigned user, superuser, admin, etc. Posted via Mobile Device |
|
![]() |
![]() |