There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
audio avg avg 8 backup bios boot browser bsod computer cpu crash css desktop driver drivers dvd email error excel explorer firefox firefox 3 freeze game graphics hard drive hardware help please hijackthis hjt install internet internet explorer itunes javascript keyboard lan laptop malware missing monitor msn network networking openoffice outlook outlook 2003 outlook express php popups problem router screen seo slow sound sp3 spyware trojan usb video virus vista vundo windows windows vista windows xp winxp wireless word
Archive: Business Applications
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Business Applications > Archive: Business Applications >
{SOLVED} Access 97 Queries


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
jrh's Avatar
jrh jrh is offline
Junior Member with 10 posts.
 
Join Date: May 2001
02-May-2001, 10:31 AM #1
I am just really learning Access 97 and am having problems w/ a query that I am trying to run.

I have two tables that I am trying to run a query on.
The first table is a log from the server, which shows the user's ID, video ID accessed, log-in time, log-out time, and total time.
The second table is a video table, which expands upon the video ID to show the title of the video, presenter and total time of the video.

I am trying to generate a query that will run through the server log, looking at each row, specifically pulling out the user ID and total time WHEN a match is seen with the video ID and total time (that is stored in the video table).

I have tried several formats and get different info with the run of each query. I have obviously not written the query correctly.

HELP! Please...

downwitchyobadself's Avatar
Senior Member with 943 posts.
 
Join Date: Oct 2000
02-May-2001, 10:45 AM #2
Hi JR, welcome.

The quick answer to what you're doing is to add the two tables in the query design window (aka QBE), draw a join by clicking and dragging from the VideoID field in the first table (let's call it tblUserVid) list, to the VideoID field in the second table (tblVid, I'll call it), where you release, thus creating what's called an "inner join." (You should see a black line between the two.) This will return only related records between the two tables. Then, you need to set your criteria for the time part. Let's say you add the TotalTime field (whatever you've called it) from tblVid as a field to show. In the same column, on the line marked "criteria", you should put in the following:

=[tblUserVid].[TotalUserTime]

where, obviously, you use your table/field names and not mine.

For more intro stuff on queries in this forum, try this thread:

http://forums.techguy.org/showthread.php?threadid=41394

And if all this still sounds like Greek, well, post back and we'll clear it up. Best of luck.
__________________
complicated music button
jrh's Avatar
jrh jrh is offline
Junior Member with 10 posts.
 
Join Date: May 2001
02-May-2001, 07:59 PM #3
Smile Queries in Access 97
Thanks for the quick response and great tips - downwitchyobadself!!

Wish I had been quicker to pop my mail and see your tip. I actually determined the 'make-table' was not the way to go and I didn't want to use a parameter. So, deleted and started over. Finally got my query working around 2:30 p.m. today. Think it would have been much sooner had I logged back in and seen your reply.

Thank you very much for the advice. I plan to keep your tip and the link that you referenced for any other problems I have with other queries I write!

Awesome response time!!
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 04:58 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.