473,406 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Help for Xbase to Access -Allen Browne may be

Hi,

I want to update the data in the master table with data from another
table. For example the following tables.

Table1 - Account_No
Name
Last_Transaction_Date

Table2 - Account_No
New_Transaction_Date

For account nos that appear in Table2, I need to replace
Last_Transaction_Date in Table1 with the value of New_Transaction_Date
of Table2

In Xbase I would do (bare code)

select a
use Table1 order accountno
select b
use table2 order accountno

scan
select a
seek b.accountno
replace a.Last_Transaction_Date with b.New_Transaction_Date
select b
endscan

What is the technique in Access?

(I have seen Allen Browne's tips for xbase users. I can see about
looping through one recordset, but not 2)

Sunil Korah
Nov 13 '05 #1
2 1772
You don't need any code!

Include both tables in a query and join the tables on Account_No. The query
will only return the records where Account_No is in both tables. Only
include Last_Transaction_Date from Table1 in your query. Change the query to
an Update query. Where it says Update To under Last_Transaction_Date, enter:
Table2.Last_Transaction_Date

Run the query to change Last_Transaction_Date in Table1 to
Last_Transaction_Date in Table2.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com

"Sunil Korah" <hb*****@indiatimes.com> wrote in message
news:72*************************@posting.google.co m...
Hi,

I want to update the data in the master table with data from another
table. For example the following tables.

Table1 - Account_No
Name
Last_Transaction_Date

Table2 - Account_No
New_Transaction_Date

For account nos that appear in Table2, I need to replace
Last_Transaction_Date in Table1 with the value of New_Transaction_Date
of Table2

In Xbase I would do (bare code)

select a
use Table1 order accountno
select b
use table2 order accountno

scan
select a
seek b.accountno
replace a.Last_Transaction_Date with b.New_Transaction_Date
select b
endscan

What is the technique in Access?

(I have seen Allen Browne's tips for xbase users. I can see about
looping through one recordset, but not 2)

Sunil Korah

Nov 13 '05 #2
Hi,

Thanks a lot. So simple. Actually I had considered this. But thought
it wont work across 2 table. Serves me right for getting stuck in the
xbase world.

Thanks once again.

Sunil Korah
"PC Datasheet" <no****@nospam.spam> wrote in message news:<RZ****************@newsread3.news.atl.earthl ink.net>...
You don't need any code!

Include both tables in a query and join the tables on Account_No. The query
will only return the records where Account_No is in both tables. Only
include Last_Transaction_Date from Table1 in your query. Change the query to
an Update query. Where it says Update To under Last_Transaction_Date, enter:
Table2.Last_Transaction_Date

Run the query to change Last_Transaction_Date in Table1 to
Last_Transaction_Date in Table2.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com

"Sunil Korah" <hb*****@indiatimes.com> wrote in message
news:72*************************@posting.google.co m...
Hi,

I want to update the data in the master table with data from another
table. For example the following tables.

Table1 - Account_No
Name
Last_Transaction_Date

Table2 - Account_No
New_Transaction_Date

For account nos that appear in Table2, I need to replace
Last_Transaction_Date in Table1 with the value of New_Transaction_Date
of Table2

In Xbase I would do (bare code)

select a
use Table1 order accountno
select b
use table2 order accountno

scan
select a
seek b.accountno
replace a.Last_Transaction_Date with b.New_Transaction_Date
select b
endscan

What is the technique in Access?

(I have seen Allen Browne's tips for xbase users. I can see about
looping through one recordset, but not 2)

Sunil Korah

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Harold Crump | last post by:
Greetings, I want to access an x-Base compatible database from PHP on a Unix/Linux environment. The database will most probably be of the DBase/FoxBase format (.dbf). Does PHP provide a way...
0
by: sa | last post by:
Hello all, I have a set of legacy applications that use dbaseIII+, containing English, as well as data in ISCII format. These have to be transferred to SQL Server. I am working on an XP with SQL...
2
by: BT Openworld | last post by:
I have just had to upgrade to Access 2003 as Access 97 EMail (SendObject) doesn't work when loaded on Windows XP. I'm finding my way around Access 2003 but my biggest problem is getting...
3
by: Rob | last post by:
Hi, I have been asked by a customer to try to resurrect a rather ancient application their organisation uses that was written in Clipper. This I am fine with. However, there is a module that was...
6
by: Jack Duijf | last post by:
Hello, I am looking for a person in The Netherlands that is willing to help me getting started with Vb.net. Please send a message to jack@aicn.nl if you can help me getting started with the...
1
by: simpleinventor | last post by:
My dad has an old real-estate managing program he's been using since windows 3.11. It has a lot of .dbf and .ntx files, so research suggests that this program was written in XBase. He just recently...
0
by: marceloy | last post by:
Is it possible to establish comunnication between a PHP system and the xbase index files? Especificaly .NSX files.
8
by: shotokan99 | last post by:
i have this situation. i have a query string: http://www.myquerystring.com?x=xxxxx what this url does is it will return or start downloading a .png file. what i wanted to do is trap this png...
1
by: shotokan99 | last post by:
i have this issue: showpic.php ================================================ $ch = curl_init(); $timeout = 0; curl_setopt ($ch, CURLOPT_URL, $xmyurl); curl_setopt ($ch,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.