473,387 Members | 1,492 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,387 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 2592
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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,...

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.