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

Autofill records because data is repetitive

Is there a way to automatically, or by using say a function key,
call/paste into a current table or query's field the same value entered

for the same field in the immediately preceeding record, when values
for a
given field are often repetitive? I have a record with 7 fields that
will be the same of all the records, only 2 fields (id number & amount)
will differ. I am trying to save the client unnecessary keystrokes.
Thanks,
Sherry

Oct 3 '06 #1
5 2909
It sounds to me that you would want to create a form based on the
constant information. Create a subform on that form that has only the
two fields that are changing. However, if you are entering the same 7
fields for every record into one table, you have a larger issue with
normalization and I would rethink the structure of the database.

I really hope my two cents helps.

Sherry wrote:
Is there a way to automatically, or by using say a function key,
call/paste into a current table or query's field the same value entered

for the same field in the immediately preceeding record, when values
for a
given field are often repetitive? I have a record with 7 fields that
will be the same of all the records, only 2 fields (id number & amount)
will differ. I am trying to save the client unnecessary keystrokes.
Thanks,
Sherry
Oct 4 '06 #2
Sounds like you may have some normalization issues here, as Tim
mentioned, above. If data is ALWAYS, or in some cases, OFTEN, the same
in multiple fields then those fields are not truly unique to the record
you are creating. Depending on the structure of your tables, you may
want to further normalize your data by storing some of the fields in a
table further up the relational structure.

For example:

If you have an Order table that lists the OrderID and the OrderDate
with a subordinate OrderItem table containing each item ordered by
OrderItemID and OrderItemQuantity, you wouldn't want to store Order
specific information like DeliveryAddress, RequestedDeliveryDate,
BillingAddress, and VendorID in the OrderItem table.

However, if each OrderItem can have a different DeliveryAddress or
RequestedDeliveryDate, you may need the structure you seem to infer.

You would have to ensure that you don't have data that belongs to an
Order entity in your OrderItem table to properly normalize such a
structure. If everyone of your repetitive fields may or will have
different data for different order types, then you will need to follow
Tim's advice and either reset the default values for consecutive
records or provide values via coded variables.

Oct 4 '06 #3
This seems like a request to emulate the "Set Carry On" feature of the old
XBase programs.
I saw a subroutine to do this where I believe the current values of the form
fields were stored to variables when those records were committed. The
variables were then used to initialize the fields on the next iteration of
the form. It could carry 1, 2,3...or all the values of the form.
"Sherry" <db****@comcast.netwrote in message
news:11*********************@m73g2000cwd.googlegro ups.com...
Is there a way to automatically, or by using say a function key,
call/paste into a current table or query's field the same value entered

for the same field in the immediately preceeding record, when values
for a
given field are often repetitive? I have a record with 7 fields that
will be the same of all the records, only 2 fields (id number & amount)
will differ. I am trying to save the client unnecessary keystrokes.
Thanks,
Sherry

Oct 4 '06 #4
Hm; you don't need variables for that. I usually do, in the afterupdate
event of a control named ctlField:

ctlfield.defaultvalue = ctlfield.value

if the control is a text, that must read

ctlfield.defaultvalue = "'" & ctlfield.value & "'"

Kc-Mass schreef:
This seems like a request to emulate the "Set Carry On" feature of the old
XBase programs.
I saw a subroutine to do this where I believe the current values of the form
fields were stored to variables when those records were committed. The
variables were then used to initialize the fields on the next iteration of
the form. It could carry 1, 2,3...or all the values of the form.
"Sherry" <db****@comcast.netwrote in message
news:11*********************@m73g2000cwd.googlegro ups.com...
>Is there a way to automatically, or by using say a function key,
call/paste into a current table or query's field the same value entered

for the same field in the immediately preceeding record, when values
for a
given field are often repetitive? I have a record with 7 fields that
will be the same of all the records, only 2 fields (id number & amount)
will differ. I am trying to save the client unnecessary keystrokes.
Thanks,
Sherry

--
Bas Cost Budde
Holland
www.heuveltop.nl/BasCB/msac_index.html
Oct 5 '06 #5
Thank you all for your advice. I'm not sure I was very clear in what I
wanted to accomplish. I need to create a file of transactions for a
college class. Each student in the class shares similar information
(class name, class day, class time, number of hours, etc) What is
unique about each record is the student's id & the student's phone
number. The end result of the data base file is my transaction file
which will be uploaded to the mainframe and will be an input file to an
existing process. The existing process expects all the records to have
all the necessary values. I was hoping the client would enter ALL the
data on line one and from line 2 to the last line, she would only have
to put in the student's id & phone number. However, each record when
written would contain ALL the data (the two unique data items plus the
data which is the same for each student.
Sherry

Bas Cost Budde wrote:
Hm; you don't need variables for that. I usually do, in the afterupdate
event of a control named ctlField:

ctlfield.defaultvalue = ctlfield.value

if the control is a text, that must read

ctlfield.defaultvalue = "'" & ctlfield.value & "'"

Kc-Mass schreef:
This seems like a request to emulate the "Set Carry On" feature of the old
XBase programs.
I saw a subroutine to do this where I believe the current values of the form
fields were stored to variables when those records were committed. The
variables were then used to initialize the fields on the next iteration of
the form. It could carry 1, 2,3...or all the values of the form.
"Sherry" <db****@comcast.netwrote in message
news:11*********************@m73g2000cwd.googlegro ups.com...
Is there a way to automatically, or by using say a function key,
call/paste into a current table or query's field the same value entered

for the same field in the immediately preceeding record, when values
for a
given field are often repetitive? I have a record with 7 fields that
will be the same of all the records, only 2 fields (id number & amount)
will differ. I am trying to save the client unnecessary keystrokes.
Thanks,
Sherry

--
Bas Cost Budde
Holland
www.heuveltop.nl/BasCB/msac_index.html
Oct 5 '06 #6

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

Similar topics

0
by: Chris Sharman | last post by:
I'd like to design my pages to work cooperatively with browser autofill features. I've loked around, but can't find any good documentation on supported/unsupported field names...
1
by: shortbackandsides.no | last post by:
I'm having a lot of difficulty trying to persuade the Google toolbar autofill to act consistently, for example ======================= <html><head> <title>autofill test</title> </head><body>...
0
by: David Portabella | last post by:
Hello, I am a doing a survey about Autofill Web Forms softwares. Usually, they all collect information of the user once during the set-up phase (user knowledge base). Then, when the user...
1
by: Nick J | last post by:
Hi, I remember at one point access would autofill a text box when filtering by form, Like for example as I would type it would come up with matching records, similar to AutoComplete in Internet...
2
by: LCalaway | last post by:
Happy 4th, all How do you turn off the following type of autofill: Example: I have created a table with four text fields. When entering numeric data in these fields, by the third field, a...
2
by: Andre Ranieri | last post by:
I'm retouching our corporate web site that, among other things, allows customers to log in and pay their invoices online. I noticed that on the checkout page, the credit card number textbox...
1
by: Rissoman | last post by:
Hello, I have an issue were I have a zipcode textbox in an atlas ajax updatepanel. When you tab out of the zip textbox and the shipping is calculated. I know this works perfect! Then a user...
8
by: jcoleshill | last post by:
Hello, I am new to Access, I'm trying to make the switch from Excel to Access as the databases I'm working with have over 200,000 records. In excel, when you want a field to autofill...
1
by: berlich | last post by:
Can I use visual basic.net to access the DOM in a web page so that I can autofill the text boxes? If so, can you point me in the right direction as to where to begin? I need to fill in a lengthy...
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?
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:
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.