J
Joe_Hunt via AccessMonster.com
Hello. I'm trying to move a process from Excel in to Access, and while it's
been a great learning experience (I'm good in Excel, but all but a newbie in
Access) I am having an issue that I hope someone would be kind enough to lend
me a hand with. I have a form that uses a query to pull in data on 70 odd
vehicles, with numerous calculations in other boxes. This works great after
much pounding of my forehead on the keyboard. My issue is that I need to be
able to pull data from one of the other rows in one of the same tables that
the first query is in. In other words I have a vehicle that is named 300_08,
meaning a Chrysler 300, 2008 model, and I need to be able to pull a record
from vehicle 300_07, the 2007 model, into the same form. I wrote a formula in
a text box that changes the 08 to an 07 nicely for all the vehicles (also if
it's an 09 changes it to an 08). I have another query written that seems to
work by itself that pulls in only the 07 records (I can adjust for the others
when I figure this out), but I need the query to reference the aforementioned
text box.
I had thought that maybe I could just put the textbox reference in the
criteria section of the query, but that didn't work. Here's what I used =
[Forms].[Residuals]![Text497] with Residuals being the name of the form and
Text Box 497 having the adjusted vehicle name.
If someone could help I would appreciate it. My forehead is starting to hurt.
been a great learning experience (I'm good in Excel, but all but a newbie in
Access) I am having an issue that I hope someone would be kind enough to lend
me a hand with. I have a form that uses a query to pull in data on 70 odd
vehicles, with numerous calculations in other boxes. This works great after
much pounding of my forehead on the keyboard. My issue is that I need to be
able to pull data from one of the other rows in one of the same tables that
the first query is in. In other words I have a vehicle that is named 300_08,
meaning a Chrysler 300, 2008 model, and I need to be able to pull a record
from vehicle 300_07, the 2007 model, into the same form. I wrote a formula in
a text box that changes the 08 to an 07 nicely for all the vehicles (also if
it's an 09 changes it to an 08). I have another query written that seems to
work by itself that pulls in only the 07 records (I can adjust for the others
when I figure this out), but I need the query to reference the aforementioned
text box.
I had thought that maybe I could just put the textbox reference in the
criteria section of the query, but that didn't work. Here's what I used =
[Forms].[Residuals]![Text497] with Residuals being the name of the form and
Text Box 497 having the adjusted vehicle name.
If someone could help I would appreciate it. My forehead is starting to hurt.