A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Help Understanding "SELECT" In Record Source



 
 
Thread Tools Display Modes
  #1  
Old April 9th, 2008, 01:55 AM posted to microsoft.public.access.forms
ridgerunner[_2_]
external usenet poster
 
Posts: 2
Default Help Understanding "SELECT" In Record Source

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


  #2  
Old April 9th, 2008, 03:04 AM posted to microsoft.public.access.forms
strive4peace
external usenet poster
 
Posts: 1,670
Default Help Understanding "SELECT" In Record Source

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
*


ridgerunner wrote:
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


  #3  
Old April 9th, 2008, 02:35 PM posted to microsoft.public.access.forms
ridgerunner
external usenet poster
 
Posts: 118
Default Help Understanding "SELECT" In Record Source

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.

"strive4peace" wrote:

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
*


ridgerunner wrote:
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



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:16 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.