Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / May 2005

Tip: Looking for answers? Try searching our database.

Error Message and not sure why Please help

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Curtis - 25 May 2005 20:02 GMT
Hi  everyone
I got a form set up that is supposed to bring in to values from a table
(TABLE A) and based on user entered information into the same form I got to
do some simple math and store the data in another table (TABLE B).  The
problem is that when I link my two fields to TABLE A before anything else is
entered I get this error (#NAME?)  showing up in the text box part of the
linked field when I change from design view.  It happens for both of my
linked fields.  Can someone please advise as what to do

Thanks Curtis
John Vinson - 25 May 2005 23:04 GMT
>Hi  everyone
> I got a form set up that is supposed to bring in to values from a table
[quoted text clipped - 6 lines]
>
>Thanks Curtis

What's the Control Source of the form textbox? And what's the
Recordsource of the form?

#NAME? means that Access doesn't recognize the fieldname as being a
field within the Form's recordsource query.

Do note that it's almost never appropriate to store calculated values
in a Table. Storing derived data such as this in your table
accomplishes three things: it wastes disk space; it wastes time
(almost any calculation will be MUCH faster than a disk fetch); and
most importantly, it risks data corruption. If one of the
underlying fields is subsequently edited, you will have data
in your table WHICH IS WRONG, and no automatic way to detect
that fact.

Just redo the calculation whenever you need it, either as a
calculated field in a Query or just as you're now doing it -
in the control source of a Form or a Report textbox.

                 John W. Vinson[MVP]    
Curtis - 27 May 2005 14:21 GMT
The thing is I need to know if I can have 2 differnet textboxes on a form
with differnet tables as there control source

>>Hi  everyone
>> I got a form set up that is supposed to bring in to values from a table
[quoted text clipped - 29 lines]
>
>                  John W. Vinson[MVP]
John Vinson - 27 May 2005 21:13 GMT
>The thing is I need to know if I can have 2 differnet textboxes on a form
>with differnet tables as there control source
'
Not directly. You may be able to base the Form on a Query joining the
two tables; if you're just looking up a value from a table based on a
value on the current record, you can use a Combo Box or use

=DLookUp("[fieldname]", "[tablename]", "[IDfield] = " & [IDfield])

as the Control Source of the textbox.

                 John W. Vinson[MVP]    
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.