?
Solved

Default Value in Subform

Posted on 2011-02-18
3
Medium Priority
?
234 Views
Last Modified: 2012-05-11
Attached I have an access file with three forms that are sub-forms of each other. The problem I am having is the last subform (AppointmentsSubform) when I enter the Student Name, often times on the form I have to enter like 20 appointments always with the same name.

Is there a way where after I enter the first appointment every time I click for a new appointment it will copy that first name of the booking? Possibly if I add a field on one of the parent forms and then have it default that field every time you put the curser into it.

Let me know your thoughts. Thanks!

Chris
PracticeMdb.mdb
0
Comment
Question by:cansevin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
3 Comments
 
LVL 40

Expert Comment

by:als315
ID: 34928290
You can set default value for every field in subform, but if Student name is field, which you like to be filled, it isnot correct - it is filled in Bookings table and you can take it to report not storing twice.
0
 
LVL 40

Accepted Solution

by:
als315 earned 2000 total points
ID: 34928479
If it differs from Customer Name, it is better to store it to bookings table and also don't duplicate it.
0
 
LVL 40

Expert Comment

by:als315
ID: 34928689
If it is also impossible, you can use some variable for storing this name (Double mouse click in Student Name Field will store and retrieve this name
PracticeMdb.mdb
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question