Solved

Default Value in Subform

Posted on 2011-02-18
3
230 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
  • 3
3 Comments
 
LVL 39

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 39

Accepted Solution

by:
als315 earned 500 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 39

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
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.

809 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