My Assistant
![]() ![]() |
|
|
Aug 14 2008, 04:00 PM
Post
#1
|
|
|
UtterAccess Ruler Posts: 1,289 From: Ohio, USA |
So, can the value in an unbound calculated control be referenced in another unbound calculated control? Hope I'm not pressing my luck, just curious.
|
|
|
|
Aug 14 2008, 04:04 PM
Post
#2
|
|
|
UtterAccess VIP Posts: 4,596 From: From Hawaii - Now in Wisconsin...Am I Nuts? |
I'm assuming that you're populating the other unbound control with some type of value based off a user event, that being the case, the answer is yes but it will obviously not retain the data.
|
|
|
|
Aug 14 2008, 04:06 PM
Post
#3
|
|
|
UtterAccess VIP Posts: 2,135 From: Plano, TX |
yes, but I would suggest doing all your calculations in a query, then using that query as the recordsource for your form.
You can find the name of the unbound TextBox by selecting it and looking at the properties box. should read something like 'text' with a number at the end. Just reference that name for your next calculation. -Trapper |
|
|
|
Aug 14 2008, 04:11 PM
Post
#4
|
|
|
UtterAccess Ruler Posts: 1,289 From: Ohio, USA |
Ahhh, actually no, I'm working with a report that has continuous rows in the detail section. I got some loooong functions as the control source in one control:
=DSum("[TotalSales]","ChoiceLevel","[ChoiceCode]='" & [Fragrance] & "'" & " AND [Category]= 'CANDLES'") ....and the next control to it needs the value generated by the fx above. The only way I can get the Dsum value is to repeat the same line in the next control! It just seems clunky and I'm sure produces alot of overhead that I'd like to avoid. The report is getting slower and slower. Any suggestions? |
|
|
|
Aug 14 2008, 04:17 PM
Post
#5
|
|
|
UtterAccess Ruler Posts: 1,289 From: Ohio, USA |
Yes, I knew that! But for some reason it didn't seem to be working for me earlier; works now though, thanks!
|
|
|
|
Aug 14 2008, 04:19 PM
Post
#6
|
|
|
UtterAccess VIP Posts: 4,596 From: From Hawaii - Now in Wisconsin...Am I Nuts? |
Could you upload a stripped down copy of your database? I think I know what you can do if what you're trying to do is what I'm thinking. I'll just throw the code into your database instead of C&Ping it in here and trying to explain where to place it.
|
|
|
|
Aug 20 2008, 01:16 PM
Post
#7
|
|
|
UtterAccess Ruler Posts: 1,289 From: Ohio, USA |
I started to put up an example but got it fixed! Thx anyways!
|
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 22nd May 2013 - 05:25 AM |