473,395 Members | 1,440 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,395 software developers and data experts.

VB6 with Access DB-processing child records

VB6, Access 2000 DB with two tables.
Master table with Text indexed key ("JDN") (NOT the primary) linked via this key to the "JDN" field in the master table. Child records only contain 3 fields, the key "JDN" text field, a text field with the date and a text field with the time.

In access the fields are linked one master to many children.
I would like some help in processing these records.

1. Add a new master record, and when when the masterrs.update takes place, add a detail record.

2.) When a new master record has been found, skip to the last detail record (so I can display the last time this event for this master occurred)

I have all the code done and working for the master record, finding, reading, adding, editing etc. It is the addition of the child records that is wearing me out. If someone could just post the 10-20 lines of code showing the correct sequence, I would be appreciative.

Masterrs.ADDNew or Masterrs.Edit
change change change
Masterrs.update

[miracle occurs here]
(add new detail record using JDN as key with current date and time)


And

Masterrs.seek successful
skip to last Detailrs record and display date and time in their text boxes on the form. (No editing allowed to child records)

Thanks in Advance
GWB
Nov 2 '10 #1
0 1254

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Gustavo Rahal | last post by:
Hi How can I access a MS-Access DB from a linux machine? I am doing a website that will be hosted on Linux and has to access a Windows machine with the MS-Access DB. I read about the PythonWin...
1
by: Joe Seamour | last post by:
I would like to access a table in MS Access from a stored procedure on MS SQL 2000. The MS Access DB is running on a diferent computer attached on the same network. I think I need to create an ODBC...
0
by: Bob C. | last post by:
I am considering combining one large Access db and several small Access db's into a single SQL Server 2000 db. The small db's serve separate but related functions in our operation, and they all...
2
by: Jeff | last post by:
I am using the following code in an access2002 db to create another access db: Set dbsNew = wspDefault.CreateDatabase("c:\propfnldata.mdb", dbLangGeneral, dbVersion30) which should create an...
2
by: steve | last post by:
Pardon me, as I am an Access newbie. How do I admin a hosted Access db? Is there something like Enterprise Manager or phpmyadmin that I can use for this purpose. Thanks in advance. --...
1
by: Joe | last post by:
Hi, I have an asp.net page that opens up a connection to MS access DB and does insert into DB. I am using close() and setting the connection object to Nothing after I am done with inserting a...
1
by: Mr. B | last post by:
VB.net 2003 c/w Framework 1.1 and MS Access db We have a commercial program that does our Acounting and Time Sheets (Timberline). At least once a day our Accounting department runs a Script...
17
by: DaveG | last post by:
Hi all I am planning on writing a stock and accounts program for the family business, I understand this is likely to take close to 2 years to accomplish. The stock is likely to run into over a...
0
by: Mark Gold | last post by:
Hi! We have a VB application using Crystal Reports 6 that has worked successfully on hundreds of systems for over 10 years. Now, on one network, the application and access database does not close....
6
by: julietbrown | last post by:
I have been wandering through Google all day, getting lots of data but not much information! I have been developing what was originally seen as a single user Access db for a small charity. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.