A
Alpha
Hi, I'm kind of new at Access. I know how to do this in T-SQL script for SQL
server but can someone tell me how to do this in Access 2000?
1. I need to select Distince(VID), Mileage, L-Service(3 columns) from
another Access DB's table-A, A ,and insert it into my DB table-B, B, if the
VID doesn't already exist
2. I need to update B. L-Service = A. L-Service where A.VID = B.VID
3. I need to update B.Mileage = A.Mileage where A.VID = B.VID
I would like this in a Stored Procedure if Access has this so I can invoke
it from my C# program. Otherwise, storing it as query should work as well.
I only see graphic interface area in Access for creating query. How can I
get to an area where I can just type in query statements? I've looked at my
Access 2000 book(pretty thick one) but found no help with what I'm looking
for.
Many thanks in advance,
Alpha
server but can someone tell me how to do this in Access 2000?
1. I need to select Distince(VID), Mileage, L-Service(3 columns) from
another Access DB's table-A, A ,and insert it into my DB table-B, B, if the
VID doesn't already exist
2. I need to update B. L-Service = A. L-Service where A.VID = B.VID
3. I need to update B.Mileage = A.Mileage where A.VID = B.VID
I would like this in a Stored Procedure if Access has this so I can invoke
it from my C# program. Otherwise, storing it as query should work as well.
I only see graphic interface area in Access for creating query. How can I
get to an area where I can just type in query statements? I've looked at my
Access 2000 book(pretty thick one) but found no help with what I'm looking
for.
Many thanks in advance,
Alpha