473,466 Members | 1,397 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Sub form visible in Form needs to hide previous entries

93 New Member
I have a form that opens with an embedded subform visible for data entry of new data only. The form is based of a select query so I can show data from multiple tables for verification but the sub forms data is the actual table. I need the sub form to open with a blank record. I do not want to show previous entries because this is to be used to add new records only and not edit anything. Can anyone help.
Jun 10 '09 #1
7 3477
FishVal
2,653 Recognized Expert Specialist
Hello, clloyd.

In a case you subform's source object is another form you could set DataEntry property of this form to True (either in design or dynamically via code) thus allowing user to make new records only.

Regards,
Fish.
Jun 10 '09 #2
clloyd
93 New Member
Form is Data Entry No or the Sub Form does not show up. The sub form is Data Entry Yes but it still shows all entries for a particular location although I have the sub form set to No Edits. You can only make additions.
Jun 10 '09 #3
NeoPa
32,556 Recognized Expert Moderator MVP
From Access Help :
DataEntry Property

You can use the DataEntry property to specify whether a bound form opens to allow data entry only. The Data Entry property doesn't determine whether records can be added; it only determines whether existing records are displayed.
Read/write Boolean.
I don't understand what you're trying to say, but it doesn't seem to add up.

Perhaps you could explain exactly what's happening a little more clearly.
Jun 17 '09 #4
clloyd
93 New Member
Ok I will try to clerify

I have a form that could potentially have 1,000 clients. Each client could have 10 entries for dates of activity, which are listed in a sub form that appears on the main so the user things it is all one record not realizing they are stored in two different tables. They appear to be one form. The problem is I do not want to show all 10 entries in the sub form but provide just a blank record so they can add the latest activity only.

Does that help?
Jun 17 '09 #5
NeoPa
32,556 Recognized Expert Moderator MVP
@NeoPa
That was helpful, as it confirmed my previous understanding of your original question.

However, I was asking for clarification of your post #3, where you indicated you'd tried the solution proposed, but so vaguely that it was not possible to determine exactly what you had tried nor what results you'd found on trying it. When describing a situation including two forms, it can be confusing to explain something relative to Form.
Jun 18 '09 #6
clloyd
93 New Member
Sorry, the main form, which used to show the detail of the location only (city state etc) is set to data entry no. The subform which is used to log all the activity for the location is set to data entry yes. I do not want them to edit the sub form at all just add new activity only.

I hope this answers the question.
Jun 22 '09 #7
NeoPa
32,556 Recognized Expert Moderator MVP
Well, I can't see why you could see any existing entries on the sub-form if its Data-Entry property is set to Yes. That doesn't make sense to me.
Jun 22 '09 #8

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

Similar topics

4
by: jerryyang_la1 | last post by:
I've found this script that allows be to hide/show form elements.. <script language="JavaScript"><!-- var toggle = true; function show(object) { if (document.layers && document.layers)...
14
by: alwayshouston | last post by:
Hi All! I am working on this very small database and I am confused in the designing a simple form. I only have three tables in the database. First Table: tblExpense Columns: ExpenseID ;...
3
by: Miguel Dias Moura | last post by:
Hello, i have a form inserted in a multipage. This multipage has 6 panels. When i finally submit the form a new record in the database is created but the record is allways empty. This is...
4
by: ThunderMusic | last post by:
Hi, I have a custom form that works fine when I debug it or run it in release mode but cannot be loaded in the designer... Actually, it can be loaded in the designer when no control is on it, but...
2
by: justplain.kzn | last post by:
Hi, I have a table with dynamic html that contains drop down select lists and readonly text boxes. Dynamic calculations are done on change of a value in one of the drop down select lists. ...
1
by: bgreenspan | last post by:
Hi Everyone, I'm back for some more expert help. Here's what I am doing and what I tried. My database has entries with Contract Names and Expiry Dates, among other fields. I have a form...
8
by: tess | last post by:
I have: table 1 - tblLeadInfo which includes a salesman ID field table 2 - tbllkpSalesman with all zips in the state and a Salesman assigned to that area. I have a form based on table #1 When...
0
bmallett
by: bmallett | last post by:
First off, i would like to thank everyone for any and all help with this. That being said, I am having a problem retrieving/posting my dynamic form data. I have a form that has multiple options...
6
by: ManningFan | last post by:
Got a little problem here... I have a combo box (Combo5) which needs to make a different field visible depending on the choice made. Standard code for what I'm doing is as such: If...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.