473,225 Members | 1,259 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,225 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 1589
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
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
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

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...
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...
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...
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....
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...
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...
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...
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...
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...
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...

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.