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 / April 2008

Tip: Looking for answers? Try searching our database.

Help Understanding "SELECT" In Record Source

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ridgerunner - 09 Apr 2008 01:55 GMT
I have a form set up with the following as the Record Source:

SELECT DISTINCTROW tblDMInspecDet.*, tblQuestions.QstWithPtVal,
tblQuestions.QstID FROM tblDMInspecDet RIGHT JOIN tblQuestions ON
tblDMInspecDet.QstID=tblQuestions.QstID ORDER BY tblQuestions.QstSortOrd;

This works great to show the data entry person all of the Questions on the
form.  The problem I am having is making another box for each question to
accept the tblQuestions.QstID as the data to be automatically entered into
tblDMInspecDet.QstID.  I feel like I am so close to having this form set up
completed but I cannot figure out what I am doing wrong.  I have tried to
pattern this after Duane Hookom's "At Your Survey" but I do not need to
create a survey, just a form that is similar to enter the data by connecting
the question and its ID to a new record containing the question ID and a
response.  Seems simple, but I worked on this all afternoon and still no
good results.

Thanks,
ridgerunner
strive4peace - 09 Apr 2008 03:04 GMT
The problem is that by using DISTINCTROW, you have eliminated
duplicates, but you have created a recordset that cannot be updated.

Ideally, each form/subform should be based on just one table.  For more
information, download and read this:

Access Basics (on Allen Browne's site)
http://www.allenbrowne.com/casu-22.html
8-part free tutorial that covers essentials in Access

Allen has a wealth of information on his site; after you get to the
bottom of this link, click on 'Index of Tips'

Warm Regards,
Crystal

 *
   (: have an awesome day :)
 *

> I have a form set up with the following as the Record Source:
>
[quoted text clipped - 15 lines]
> Thanks,
> ridgerunner
ridgerunner - 09 Apr 2008 14:35 GMT
I will download and read the file, but now I am really confused, since I
thought I needed to use 'At Your Survey' as a model for my inspection form.

> The problem is that by using DISTINCTROW, you have eliminated
> duplicates, but you have created a recordset that cannot be updated.
[quoted text clipped - 35 lines]
> > Thanks,
> > ridgerunner
 
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.