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 / Forms / May 2008

Tip: Looking for answers? Try searching our database.

Problem linking textbox to a query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
danbli - 20 May 2008 20:05 GMT
Hello!

I have some problem with an old accessdb that needs some fix up.

I have form with many fields in it(which I didn't create).

I have one textfield that has the recordsource "PNC" and I'm gonna put
another textfield that shows the modelnumber for this PNC(partnumber).

I have linked a table that has both the PNC and the modelnumber in it and i
have tried to make a question that get's the modelnumber with the criteria
Forms![nov_form1]![PNC] where nov_form1 is the name of the form. The textbox
that gonna show the modelnumer has this recordsource
=[PNCMODEL]![C2MODL]

The sql for the question is
SELECT EUPMA_EUPPFC2.C2PNUM, EUPMA_EUPPFC2.C2MODL
FROM EUPMA_EUPPFC2
WHERE (((EUPMA_EUPPFC2.C2PNUM)=[Forms]![nov_form1]![PNC]));

If I run the question in querydesigner and I put in a valid PNC in the box
that comes up I will get the right PNC and modelnumber from the linked table,
It is only in the form I cant see the modelnumber.

I really need some help with this...!

With best regards
Daniel Blixt
Sweden

System Developer
Electrolux IT
Mariestad Plant
Jeanette Cunningham - 20 May 2008 23:56 GMT
Daniel,
Instead of using criteria in the query, create a new query that joins both
tables and inculde the fields for PNC and the modelnumber in the query.
Use this query as the record source for the form.

Jeanette Cunningham -- Melbourne Victoria Australia

> Hello!
>
[quoted text clipped - 32 lines]
> Electrolux IT
> Mariestad Plant
 
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.