472,371 Members | 1,522 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,371 software developers and data experts.

Create a new Form from based on a 'Filter By Selection'

I have cerated a Form, ExamsFrm, which is used to input details of
exams taken at several Centres. It dosplays details from StudentTbl
and has a SubForm which displays details from ExamsTble.

I have incorporated some VB6 code as well as some Conditional
Formatting. The code automatically updates CheckBoxes in the SubForm,
depending on exam results, and the Conditional Formatting changes
background colours, depending on CheckBox datum.

I have created a Main Switchboard with absolute minimum Startup
options for security reasons, which means that the user is not allowed
to filter records.

I intend having controls to access data from each centre e.g. EXAMS
CTR1, EXAMS CTR2, etc. and obviously need to create a new Form for
each Centre.

Is it be possible to create a new Form for each Centre by saving the
results of a 'Filter By Selection' (from ExamsFrm, Centre), as a new
Form which retains all codes, formatting, layout, etc?

Or will I have to create each Form from scratch?

Terry
Nov 12 '05 #1
2 2483
Why not create a table of ExamCentres, have a combo box (ExamCenterID) on
your form to select the appropriate exam centre and have the underlying
query with a criteria of WHERE ExamCenterID = Forms!ExamsFrm!ExamCenterID

OR

You can copy and paste a form and change the name. Only problem is if you
have any code and that refers to the form by name, you will have to alter
the code to reflect the name of the new form.

But somewhere you will have to define which exam center you are referring to
and a filter good if you are looking for information, but messy if you know
the information you are looking for.

HTH

Phil
"Terry" <tc*****@merseymail.com> wrote in message
news:38**************************@posting.google.c om...
I have cerated a Form, ExamsFrm, which is used to input details of
exams taken at several Centres. It dosplays details from StudentTbl
and has a SubForm which displays details from ExamsTble.

I have incorporated some VB6 code as well as some Conditional
Formatting. The code automatically updates CheckBoxes in the SubForm,
depending on exam results, and the Conditional Formatting changes
background colours, depending on CheckBox datum.

I have created a Main Switchboard with absolute minimum Startup
options for security reasons, which means that the user is not allowed
to filter records.

I intend having controls to access data from each centre e.g. EXAMS
CTR1, EXAMS CTR2, etc. and obviously need to create a new Form for
each Centre.

Is it be possible to create a new Form for each Centre by saving the
results of a 'Filter By Selection' (from ExamsFrm, Centre), as a new
Form which retains all codes, formatting, layout, etc?

Or will I have to create each Form from scratch?

Terry

Nov 12 '05 #2
Thanks Phil. I had a dabble at your suggestions but couldn't get them
to work. This is mainly due to the fact that I am a complete Newbee
but have gained a lot if confidence/overconfidence through
correspondence with this group. Though I guess you may have sussed
this by my question;-)

But also my heart wasn't really in it because I have set my Form to
display as Datasheet on open (should have mentioned this in my
scenario). The reason for this is that I think this makes it easier
for users to enter mutiple records, on a single screen, without having
to search individual records on a standard Form.

However I'm still finding it difficult to accept the fact that there
isn't a built in facility, among the myriad of other facilities, to
save the results of a Filter By Selection as a new Form, as it would
be so useful if it were at all possible.

It was just an idea and if it can't be done I'll work around it
somehow.

Thanks for your help.

PS Once this project is finished I really do intend looking at
tutorials as hacking it is really hard work:-)

Terry

"Phil Stanton" <di********@stantonfamily.co.uk> wrote in message news:<3f***********************@mercury.nildram.ne t>...
Why not create a table of ExamCentres, have a combo box (ExamCenterID) on
your form to select the appropriate exam centre and have the underlying
query with a criteria of WHERE ExamCenterID = Forms!ExamsFrm!ExamCenterID

OR

You can copy and paste a form and change the name. Only problem is if you
have any code and that refers to the form by name, you will have to alter
the code to reflect the name of the new form.

But somewhere you will have to define which exam center you are referring to
and a filter good if you are looking for information, but messy if you know
the information you are looking for.

HTH

Phil
"Terry" <tc*****@merseymail.com> wrote in message
news:38**************************@posting.google.c om...
I have cerated a Form, ExamsFrm, which is used to input details of
exams taken at several Centres. It dosplays details from StudentTbl
and has a SubForm which displays details from ExamsTble.

I have incorporated some VB6 code as well as some Conditional
Formatting. The code automatically updates CheckBoxes in the SubForm,
depending on exam results, and the Conditional Formatting changes
background colours, depending on CheckBox datum.

I have created a Main Switchboard with absolute minimum Startup
options for security reasons, which means that the user is not allowed
to filter records.

I intend having controls to access data from each centre e.g. EXAMS
CTR1, EXAMS CTR2, etc. and obviously need to create a new Form for
each Centre.

Is it be possible to create a new Form for each Centre by saving the
results of a 'Filter By Selection' (from ExamsFrm, Centre), as a new
Form which retains all codes, formatting, layout, etc?

Or will I have to create each Form from scratch?

Terry

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: deko | last post by:
I have several stored queries that provide views based on user selection - selection criteria is stored in strPxSx, and the query called would then be "qrySearch24" or "qrySearch19", for example. ...
2
by: Patrick Gonzalez | last post by:
Is it possible to use the built-in filter functions (ie. "Filter by Selection", etc..) when a form's recordsource has been set to a recordset object during the load event. When I try to do this, I...
0
by: Patrick | last post by:
I'm working on a contact management application, and need a hand with one aspect... Here's what I want to create: ------------------------------------ A form split into two parts. There is a...
12
by: Doug Bell | last post by:
Hi, I am having problems trying to create a (temporary) DataTable from a selection from a DataGrid (dgOrders). dtOrdDetails is declared as a Public DataTable Sub is: Dim stFilter as String...
0
by: eighthman11 | last post by:
Access 2000. Sql Server I know this is going to sound crazy but I have a continuous form which is bound to a sql table with an ODBC connection. I filter the records in the Continous form...
3
by: Henrootje | last post by:
I have a form based on the query: SELECT tblCreditGeld.CG_Selected, tblCreditGeld.CG_ClientSelected, tblCreditGeld.CG_ComplexSelected, tblCreditGeld.CG_OKGR_ID, tblCreditGeld.CG_OKGR_IDN,...
4
by: novoselent | last post by:
This seems like it should be an easy thing, but I think I'm missing something simple here...or I'm just going about it all wrong... Using Access 2003 I have a form that lists vehicle service...
17
by: DeZZar | last post by:
Hi all, I need to regularly backup my database as an Excel file and have been using the File Export option. Problem is I need anyone using the database to be able to do this easily - nopt...
0
by: swapnil1987 | last post by:
hello friends i am trying to find solution for this problem if u know something then please tell i am creating web application that runs on black berry. here i need to create selection list...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
0
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.

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.