Thanks Rudy! It works now.. but not sure if it's good? I kept the code the same but changed
ON Start.Date = Stop.Date to ON Start.Date <= Stop.Date
It worked! 53 days. But I shouldn't JOIN on Date you say? My real table has several different start stops actually and I'll need to calculate the...
Hi, I created a small table to try the code but it returned no results. What am I missing?
Thanks!
Derek
Table: [T_Logfile]
TableTest_ID Date Type
1 2005/01/01 Project Start
2 2005/02/23 Project End
Query Code:
SELECT Start.Date
, DateDiff("d"...
Hi Everyone,
I have a query filtered down to two records each with a date. The dates are in the same field, one on top of the other. (Not side by side)
Example:
Jan. 1 Project Start
Feb.12 Project End
Does anyone know how I can subtract the two dates to find the number of days between...
Hi!
I was wondering how I can do the following:
I have a table that logs different statuses for files. First I filter a column for “Leave Status” only.
Example:
Jan 1 Bob Pending Leave Status
Feb 1 Bob Off work – planning Leave Status
Mar 1 Bob At work – Temporary Leave Status
Apr 1 Jim...
Thanks for all the help! It works now. I couldn't understand the SQL to wrap it up nicely in 1 query so I created 2 queries as suggested by dhookom. Here's the resulting SQL from SQL view.
DQ_Filter Query 1:
SELECT T_Leaves.Staff_Id, Count(T_Leaves.LeaveTypeId) AS CountOfLeaveTypeId
FROM...
I'm sorry PHV.. I'm a beginner at SQL. Where does table B come in because I only have 1 table. :(
SELECT tblEmployees *
FROM tblEmployees
WHERE 1<(SELECT Count(*) FROM tbl?? WHERE ??.EmployeeID=tblEmployees.EmployeeID);
I don't quite get where the tblB comes in.
Thanks for your help!
Derek
Hi,
I have a table for Employees where the EmployeeID is sorted Ascending. How can i just have the EmployeeID records with more than one record shown? I don't want the EmployeeIDs grouped but need to see the unique entries in another Comments column. All I could think of was to Count it but...
Can anyone help? I'd like to know how to program a module in Access to do the following:
Save two Access queries to specific tabs in an Excel spreadsheet.
Example:
Open Excel workbook myData.xls
Run module to save myQuery1 to tab myQuery1 in myData.xls. Close workbook.
Run seocnd module to...
Hello All!
Is it possible to have an Access form output information side by side in 2 columns on the same page? Ie. A telephone address book where on the left hand side it lists the names starting with A, then B, C, etc.. then once it reaches the bottom of the page continues on the second...
Hi there!
Does anyone know how to customize an Access Template's display? ie. colours of the table header, the table border, table content font..
I can adjust the background properities in the <body> tag but any ideas how to format the table itself because access generates that.
Below is a...
Hi Everyone,
I've seen this done with another persons reports where a msgbox pops up asking which month's data they would like to see. How can I do this too?
Is it done using the original query that the report pulls the data from?
Thanks!
Derek
Hi! Can anyone please explain which actions/scripts to use in order to generate a movie clip that appears randomly on the stage for x number of times? ie. a movie clip fades in and fades out in 3 random locations and then stops.
Thanks!
DK
Hi there!
I set up 3 fields: wage1, wage2 and avgWage.
How and where can I set a formula up so that the avgWage field will automatically calculate the avg value for wage1 and wage2? All three fields are in the same table.
Is this possible?
I've been trying to stick an expression in the...
Hi all!
I see that the sample databases that Microsoft offers all use the Text datatype for things like phone numbers and dates. But wouldn't it make more sense to use the Date/Time data type for dates?
Is there any difference in how it sorts or what things you can do with one data type that...
Hi Dalchri!
I'm trying out your suggestions but everytime I do something like <Expr> As ExprName it displays that table in the query output though right? How do I use this method to store long expressions but also for them not to show up in the query output as a field column?
Any other ways...
Thanks dalchri~!! Great suggestions. I knew I had a lot of repetition that could be simplified but didn't know how to do it.
I'll work on my code and let you know how it goes.
Thanks again!
DK
Hi Codemasters!
I have this expression I'd like to put into my query but since the query has 2 tables it pulls info from I have to put the table name for each field! Can anyone either help me to refine my code or teach me how I might be able to do this through vb dynamically? The expression is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.