473,409 Members | 1,935 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,409 software developers and data experts.

I need a subform to stick on one record

Hi everyone,

I have a form called Master Order with a subform in it called Order Info. The subform has a nested subform in it called Order Details. Master Order cycles through all of the parts in my database. Order Info contains order specific information (order number, employee ordering, date of order, etc. ) and Order Details contains all of the parts in the order (run off a junction table linking it with Order Info via the orderID field).

So here's my situation: When I open Master Order, I have the the Order Info default to add a new record (ie. create a new order). The nested subform is thus empty (no parts have been added yet to the new order) which is good. The user cycles through the parts in the database to add them to the new order (still good). My ONLY problem (so far) is that I need the Order Info subform to stay on the new record (so that the user cannot accidentally select a previous order). I have removed the navigation buttons on the Order Info subform, which helps, but if i select a field in the Order Info subform and scroll with my mouse, I can move to previous records. This is bad!! Is there a way to make the subform 'sticky', and stay on the one record? I apologize for the long winded explaination.
Oct 26 '07 #1
5 1595
FishVal
2,653 Expert 2GB
Hi, blakerrr.

Set form's property "Date Entry" to "Yes".
Oct 26 '07 #2
Hi, blakerrr.

Set form's property "Date Entry" to "Yes".

Thanks FishVal!

Now a new challenge. Can I default a field called txtDateOrdrd in the Order Info form to be todays date? This way, when the master form is opened, the Order Info form creates a new order with a new OrderID and has the Ordered Date filled in. I'm currently using this line of code on the Order Info subform's 'On Open' event, but I get an error saying "You can't assign a value to this object".

Me!txtDateOrdrd.Value = Format(Now, "mm/dd/yyyy")

Any ideas?
Oct 26 '07 #3
FishVal
2,653 Expert 2GB
Not a challenge at all, blackerrr.
Set control's "Default Value" property to "=Date()". Avoid using Now() as it generate value with hours, min, sec and msec.
Oct 26 '07 #4
Not a challenge at all, blackerrr.
Set control's "Default Value" property to "=Date()". Avoid using Now() as it generate value with hours, min, sec and msec.

Great! Thanks FishVal
Oct 26 '07 #5
FishVal
2,653 Expert 2GB
Not a problem.
Good luck.
Oct 26 '07 #6

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

Similar topics

10
by: Alain Guichaoua | last post by:
Good evening to all Here is my problem : I have a form with a subform. They are linked. When I open the form I would like the subform to reach its last record. I tried the method...
4
by: Jeremiah J. Burton | last post by:
I am trying to create a database (in Acces 2000) to track my fossil collection. I have a main table that has records for every specemen. I have a secondary table with information on localities...
4
by: wayne dooley | last post by:
This should be easy. I have 2 tables - CUST and SUBS, which have a 1 to many relationship. I created a form to show fields from CUST and a subform to show those in SUBS. The 2 tables are related...
6
by: Ray | last post by:
I have a main form with a subform. The main form has a combo box which lists all the clients which in turn are displayed in the subform. The subform is bound to the combo box and all work well....
2
by: CSDunn | last post by:
Hello, In an Access 2003 ADP Subform, I am trying to set the BackGround color of three textbox fields (LSScore, RScore, WScore) in the current record of the subform to zero (black) if the value of...
25
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the...
18
by: Darryl Kerkeslager | last post by:
I don't do much with subforms - in fact I've deliberately avoided them - but .... I have a tab control that will contain several subforms, each bound to a separate table, and each table/subform...
2
by: Susan Bricker | last post by:
Greetings. Before I begin, I have been stuck on this problem for about a 5 days, now. I have tried and just seem to be not getting anywhere. I know that the explanation is lengthy, but I am a...
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...
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:
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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.