473,399 Members | 2,146 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,399 software developers and data experts.

How to Create Subform Records Automatically

I have an Access 2003 database that is used to record details of all of our members. Table 1 [tblMembers] is populated via a form. We also have another Table [tblCRM]to record various scheduled calls we make to our members. The tblCRM appears as a subform on the main form. Each call made to a member has a specific 'reason' (a field which is a drop-down option on the subform). Every member has a unique [MemberID] , which has a one-to-many relationship with the various calls that can be logged on the CRM database.

Whenever a new member joins, we are required to setup 4 'blank' calls for them - each call is for a different 'reason': 30 Day, 6 Month, Renewal and 18 Month.

What I would like to be able to do is setup a macro so that when a new member is added and their member ID number is entered, that 4 'blank' calls are automatically created for them on the subform/tblCRM.

The 4 calls should be populated with 30 Day, 6 Month, Renewal and 18 Month in the reason fields. Does anyone know how I could do this? I'm not the brightest with regards to VBA, but have been able to get by so
far :)

the structure of my setup is now as
follows:


tblMembers = Parent table
tblCRM = Child table


frmMembers = Parent form
frmCRM = Child subform


The [MemberID] field is the the linked field between them. A member can have many calls on tblCRM, with the calls on the tblCRM being allocated to the unique MemberID on the tblMembers.

Thank you very muchly :)
Jul 28 '10 #1
0 916

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

Similar topics

7
by: Dave Elliott | last post by:
I have a db that is split and shared on the network. I gave the user a custom menu to use. We both use the same tables of course. On my PC I can create new records using their menu on my PC, on...
0
by: Jonathan Fisher | last post by:
What¹s the appropriate way to create records in related, subsidiary tables when a record is created in a main table? I¹m using Access 2000, and I have a main table called tblProject, and a few...
1
by: Terri | last post by:
I'm summing subform records in a control on a main form. I have a control in the subform footer called TotalAmount with the control source =Sum(). On my mainform control I reference this control...
7
by: Steven.Xu | last post by:
Hello everyone! I have a problem about create an instance automatically in C#. Now I have a class: namespace1.namespace11.CClass01. I want to create it's instance in a function named...
1
by: projectjakecs | last post by:
Hi, I am working on a ms access database and I am having trouble using a form to create new records in an associative table. Here is the breakdown of my database: Main Table - Computer...
1
by: kkitto | last post by:
HI, I have 6 order book for issuing order numbers to suppliers. Each has 100 unique numbers in it which I need to create in a trackable database to track our outgoing payments against each order...
1
by: jmarr02s | last post by:
Is it possible to limit the number of Subform records using MS Access 2003? That is, my end users want the capability of entering up to 12 records on their subform. Is that possible? ...
3
by: paquer | last post by:
On my Main form I have a Command Button that opens a Subform in order to create a new Subform record. At this point I want the subform to show only the new record being created. Not all the...
1
by: ngugi | last post by:
I am in a big mess I hope this forum shall sort me out How do make my access database(connected to vb 6.0.) add records automatically at the end month and also How do i make my Ms access database and...
0
by: jwbird | last post by:
I have a main form with multiple Subforms that are all displaying Datasheet information related to the Main form record. When I make changes/adds to the records(s) in the subform and tab to another...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.