Query Problem

B

Bryan Hughes

Hello,

I am trying to create a append query, but having trouble figuring it out.

I have two tables I am working with, one is a main and the other is a sub
table.

I need to get the last date ([Activity]![CAD]) and activity status
([Activity]![CAS]) As LastCAS entered for a ID Number ([Activity]![GTFID]).

Then if the ID Number [Main]![GTFID] is still open [Main]![Open] in the Main
table get the Date opened [Main]![IOD] ,
add Current month and year to [Main]![IOD] (CDate(Month(Date()) & "/" &
DatePart("d", [Main]![IOD]) & "/" & Year(Date())) As NewCAD)

then append the [GTFID], NewCAD, LastCAS to the Activity table.

-TFTH
Bryan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Second Post: Last Date Query 2
Append Query with Date 1
Date Problem 1
Append query key violation 8
Concatenate Values in Crosstab Query 5
Datepart Function 1
Syntax Error in Sub Query 6
append query 1

Top