473,402 Members | 2,072 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,402 software developers and data experts.

Can a tab be created in form when a record is created or query is run?

Hello,

This is a design question not a "how to" I would like know if it can be done before searching for a non existant answer :).

If a record is created via a form, can a tab be created on another form from that record creation?

I.e. user creates record 286 (arbitrary number) via FormRecordEntry. Is it possible that a tab be created at that time on FormLog for that record?

I am thinking if that can be done, then I can create an OnClick event for the tab to query TableRecords for all subdata that relates to record 286.

If it is doable, I'll go searching for the how-to.

Regards,
Oct 8 '09 #1
4 1912
ChipR
1,287 Expert 1GB
I haven't really explored whether this is possible, but I would doubt it could be done outside of design mode. I think it might be easier, though, to have a continuous form with a record selector, and a linked subform with details. When a record is added, it will show up in the continuous form, where it can be selected to view details. On the other hand, I'm not sure of any way to make the records list horizontally, if that's what your application requires.
Oct 8 '09 #2
Okies, ChipR.

I see where that would also take care of it.
Oct 8 '09 #3
NeoPa
32,556 Expert Mod 16PB
I can't see how it would make sense to design a page (Tab) that relates to a specific record. Surely the page would relate to a particular record source. Assuming that to be the case then the form on that page could be requeried or its filter could be reset. These would give what you require without design changes. I'm assuming your requirements are for what I'm thinking. Otherwise your question doesn't make sense to me. Maybe I'm missing something.
Oct 8 '09 #4
ADezii
8,834 Expert 8TB
@Rotorian
I too like NeoPa am slightly lost, but I'll nonetheless show you how to dynamically add another Tab (Page) to a Tab Control named TabCtl1 on frmTabTest and give it the Caption of 'Last Tab Added':
Expand|Select|Wrap|Line Numbers
  1. Dim frm As Form
  2. Dim tbc As TabControl
  3.  
  4. DoCmd.OpenForm "frmTabTest", acDesign
  5.  
  6. Set frm = Forms!frmTabTest
  7. Set tbc = frm!TabCtl1
  8.  
  9. tbc.Pages.Add
  10.  
  11. tbc.Pages(tbc.Pages.Count - 1).Caption = "Last Tab Added"
  12.  
  13. DoCmd.OpenForm "frmTabTest", acNormal
  14.  
Oct 9 '09 #5

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

Similar topics

6
by: John | last post by:
Just a general question... I'm currently using a combobox that when updated, opens a form with its recordset based on a query using the combo box value as the criteria. I'm I correct in...
3
by: William Wisnieski | last post by:
Hello Everyone, Access 2000, I have a main unbound form with a bound datasheet subform . The subform is bound to a query that returns records based on criteria in the main form. The user...
2
by: neptune | last post by:
I built a form to access a query with a 2 field primary key. It should use 2 controls to find the unique record and display the other field values on the form. In the criteria section of the...
3
by: Tracy | last post by:
Hi I'm hoping this is a problem just because I'm a beginner at Access, and so someone can help I have created a database of companies, with a subform for contacts. (seperate tables) It...
4
by: Dave Boyd | last post by:
Hi, I have two very similar forms each with a subform. The main form gets a few fields from the user and passes this back to a query that the subform is bound to. The requery is done when the...
5
by: tdmailbox | last post by:
I have a form with a child form. In the child form there is a list of names that can grow quite large. On the parent form I want to display the first name from the child form. I set up a test...
4
by: Gilberto | last post by:
Hello, I have a couple of forms using the code to FIND AS YOU TYPE from Allen Browne (http://allenbrowne.com/AppFindAsUType.html). It worked PERFECTLY until yesterday when i splitted the db into...
11
by: radink | last post by:
Hey All, I have a report that I would like to show a word on based on if a field is checked in a form. For example. The form has a check box called Fee. If that is checked, I want the word Paid...
4
by: jbrumbau | last post by:
Hello, I have been successfully using a database I've created for several months to populate an equipment list for a project we've been working on. However, the form has recently stopped working...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.