Forms :: Give Warning When Switchboard Form Opens?

Oct 2, 2014

I have a table which holds information relating to a fleet of vehicles; each of these vehicles is currently physically checked on a daily basis for a number of items, one of which being to check that the vehicle has valid VED (tax disc).

With the paper disc being abolished now, we have a situation where the individual using the vehicle cannot be certain about its VED status (the chances of one not being taxed is next to nil, but we are talking a fleet of nearly 1000 vehicles here, so anything is possible)

Our current database has most of the vehicle information stored already, so in theory I think I only need to add a couple of fields, which will make the table structure (roughly):

FleetID
RegistrationNumber
CallSign
MobileTelNo
MOTExpiry
VEDExpiry

With the latter two being the added fields.

Now, what I was wondering.....

Is it possible that when a Form (not related to the table, and most likely the main switchboard form) is opened that both the MOTExpiry and VEDExpiry dates are checked, and if either or both of them are due to expire within 7 days or have already expired that a warning appears (vbaOKOnly messagebox would do fine) stating that there are vehicles that require their MOT & VED dates to be checked and updated accordingly)?

View Replies


ADVERTISEMENT

Switchboard Opens Form In Wrong View

Feb 8, 2005

I have designed a form which I want the users to see in Datasheet form.

In the properties, "Default view" is "datasheet" and "Views Allowed" is "datasheet"

When I open it directly, it opens as a datasheet.

But when the Switchboard opens it, it comes up as a Single Form. Infuriating !

What to do ?

NoVoiceLeft

View 4 Replies View Related

Switchboard Opens Blank Forum, Altho Is Populated.

May 31, 2006

Hi all,

I decided to create a switchboard using tools---> DB utilts---> SW manager.
i have managed to get this on the front end, altho the first button the contacts does't work properly. when i click it using that i cannot see any of the data that is in the database? but if i go out the switchboard without pressing anything on it. and goto contacts form the data is there?

Wired? or is it something simple i have missed?


Thanks

Shrew

www.dsltech.co.uk/310506.zip

View 1 Replies View Related

Form Opens When Database Opens

Aug 16, 2007

How can I get a form to open when the database opens?

View 5 Replies View Related

Forms :: Form Opens A Web Page

Jul 21, 2013

Whenever I open this form I get this message. Form opens a web page.If I open that web page with browser I don't get this message.

View 2 Replies View Related

Forms :: Button That Opens Form And Pre-selects A Value In List Box

Aug 24, 2014

I open a form (EntryBasic) for users to enter data in, which is then saved to the only table in the database (MasterTable). The form (EntryBasic) has a list box with four choices: red, white, blue, orange. The button that opens the form is placed on another form (MainForm) The form (EntryBasic) record source is MasterTable.

A user is on the MainForm and needs to add a new record related to red. When user clicks on the button (NewRedEntry), I need the form to open and the list box pre-selected to red.

Is there a macro or VBA code that might simply execute this action, preferably something that can be attached to the NewRedEntry button?Even better, if there are two list boxes, code such code be applied to same NewRedEntry button, where both list box values are pre-selcted with the click of this button?

View 5 Replies View Related

Forms :: Textbox Controls Not Loading When Form Opens

Aug 9, 2015

I am having a hard time with this project that I'm working on at the moment.

I have created a modal dialogue form that has a macro set to open another form and close the current form at the same time. The form that is being opened has textbox controls that have the default value set to hold the data that is in the textbox controls in the modal dialogue form that is closing. The problem is, is that when the modal closes, the controls in the next form display #Name? and the data is not copied to the next form.

View 2 Replies View Related

Forms :: Command Button - Form Opens To New Record But Not Specific One

Jul 2, 2013

I have a form that opens from a different form based on the primary key within the original form. Unfortunately it seems to be opening a new record every time I open the form--not only from the original form but also straight from the sidebar.

The command button that opens the second form from the first uses the following VBA:

DoCmd.OpenForm "ZooMobile Incomplete Booking-Return Client", , , "[Event_ID] = " & Me.EventID

This exact coding worded perfectly in a similar set of forms that I had created; the only difference is a change in the form name & primary key field.

Add onto this, I think that the code DOES work, but then it immediately opens another new record. When I open the second form from the command button, then change to Design View, the form's Filter property is set to [Event_ID]=X (where X is the proper key from the first form) and Filter On Load is set to Yes. The X in the Filter changes accordingly when it changes in the first form. Also, every time I open the form a new record is added to the underlying table.

I've tried setting "Allow Additions" in the second form to No, but then when I open the form nothing appears. Literally; the entire form is blank, no labels, textboxes, combos, buttons or anything. When going to Design View it's still all there.

I've also checked the On_Load, On_Current & Form_Current events and found nothing. I even deleted them and the problem still occurred.

View 4 Replies View Related

Forms :: Duplicate Form Opens But Area With All Info Is Blank

Jul 2, 2013

I just copied a form from one database to another and for some reason the copied form in the new database does not display. the form opens but the area with all the info is blank... When I choosed design mode it all shows up correctly but in form mode it is just blank.

View 3 Replies View Related

Forms :: Search Form When Closing Gives Warning - Cannot Save Record At This Time

Aug 5, 2015

I have a "Search" form that I am using to search through a query in a list box of all of my Customers. Once the record that I am wanting to view comes up I highlight it and click a "View" button to bring up another form with the customers full record. When this form is open I am able to update the customer information and add User's to it if necessary.

My problem comes after I click on my save and close button that takes me back to me search form. I want to close the search form and the error I get is "The record cannot be deleted or changed because table "tblUserProfile" includes related records." I click OK and get a SECOND error stating "You can't save this record at this time. MS Access may have encountered an error while trying to save a record. If you close this object now, the data changes you made will be lost. Do you want to close the database object anyway?"

I have already made my changes and saved them in the form with the customer record so am not sure why I am getting an error when trying to close the Search form.

View 5 Replies View Related

Forms :: BrowseTo Opens Form As NewRecord Depending On Opened Record

Apr 2, 2015

I'm using a navigation control to switch between forms. In one of those forms, I have a continuous subform which is a list of Projects (source is a query) that is read-only. To edit a project, I can click on its name, which switches the form displayed in the navigation control via docmd.BrowseTo (with acEditForm as the last parameter). This works fine. The proper form opens, with the proper project being displayed.

Now, on this second form, I have on the right the list of tasks contained in the project in a continuous subform (source is a query), and on the left another subform which is kind of an "edit bar" that I use to actually edit the individual tasks. So, when I click on a task in the task list, the OnCurrent event triggers a docmd.BrowseTo command that updates the "edit bar" subform and passes the ID of the task as the WhereCondition parameter. This updates the values displayed in the Edit Bar to that of the selected task, which I can then edit.

Now here's the thing: depending on the project I open, the Edit Bar doesn't work. Actually, it looks like only one of the projects is working, while the others are not (and I managed to have a different project working, but only one works at any given try). When it doesn't work, the Edit Bar is in "NewRecord = True" for some reason. All the other properties of that subform seem to be the same between when it works and when it doesn't.

So, it looks like the same command (docmd.BrowseTo with acEditForm) opens the subform properly in acEditMode when it works, and in something else when it doesn't, depending on the parent record that's being opened.
This really gets me, I really can't figure out how that's even possible.

I suspect it might have something to do with locked records, maybe?

View 2 Replies View Related

Forms :: When Clicked Form Opens To Blank Record And Won't Show Previous Records

May 6, 2015

I've recently decided to move a database that had all its information on 1 table and divided it into multiple tables.

Attached is the relationship as well as the form.

The issue I have is that when I click the form, it only shows a blank record with none of previous records.

Data entry is already set to NO. I'm wondering if it's an issue with my relationships, tblStudioDescription is the parent table and the others are child tables so I linked them with the ID and set referential integrity.

View 7 Replies View Related

Opening A Report Instead Opens A Form (which Opens A Report)?

Jun 15, 2005

Hi,

I've been given an existing database to modify, and I'm struggling somewhat to see how the author has implemented certain functions.

On a main menu form (autoexecs on starting the database), there are various "Search By" option buttons to generate a report, ordered in various ways. The "On Click" field for each of them refers to a macro, called Buttons, and a line in that macro dependant on the type of search (e.g. OnClick = Buttons.byPerson).

The Buttons macro runs an OpenReport command, the report corresponding to the search type (e.g. Buttons.byPerson has an OpenReport command for the "Report by Person" report).

However, when I click the search buttons (or indeed run the corresponding reports) I instead get another form which allows the search criteria to be specified - this then generates the report (I would assume based on the relevant query - e.g. Person Query), but I cannot understand how this works.

Google searches have not helped much as I can't seem to find an adequate search phrase to use, and I've been staring at the thing for some hours now. Any help getting me off in the right direction would be much appreciated!

View 4 Replies View Related

Forms :: Form Name Switchboard Is Misspelled Or Refers To A Form That Doesn't Exist

Apr 23, 2013

I am using Access 2007. I have had an application running now for about 1 year and now getting an error when user opens the database. (Have one for front end and one db for backend)

Here's the error message:The form name Switchboard is misspelled or refers to a form that doesn't exist.Also, multiple users are accessing the database at the same time.

View 3 Replies View Related

Forms :: How To Display Form In Datasheet View From Switchboard

Jul 31, 2015

Have created a form to display/change table info in Datasheet View and added the form to a switchboard.When selected from switchboard, it displays a single record. When executed from the Forms (objects), it displays in Datasheet view.? How can I get it to display in Datasheet View from Switchboard?

Default view = Datasheet
Allow Form View = Yes
Allow Datasheet View = Yes

View 1 Replies View Related

Forms :: Non Matching Records To Give Message Box?

Dec 11, 2013

I have two tables, categories and items. I have a form that is linked to the categories table and a subform that is linked to the items table. The user selects a category on the main form then an item to add to the category on the subform. (all of this is functioning correctly - but you need to understand for my question.)

Both the form and the subform have a text box that displays a record from their respective table, for the example we will call this color.

What I need to do is create code that checks the color text box from the category (main form) against the text box for the item (subform) and if they are not a match I need to display a message box - from where I can then add the necessary actions.

EDIT: note this is not a query on an entire table or 2 it is just comparing the two text boxes on the form and subform

View 5 Replies View Related

Forms :: Can't Give Conditions On Validation Rule?

Jun 1, 2015

Can't we give conditions on Validation Rules? (Like IIf)

IIf(getusername()=[Log_Resource],Between DateAdd("d",-1,Date()) And Date(),Between DateAdd("d",-2,Date()) And Date())

View 8 Replies View Related

Forms :: How To Give User Authority On One Button

Apr 27, 2014

how to give someone authority on one button in form

View 8 Replies View Related

Forms :: Open Multiple Forms When Database Opens?

Apr 26, 2013

Is it possible to open multiple forms when the database opens? Currently only one form opens. I am using Access 2010.

View 5 Replies View Related

Modules & VBA :: How To Give User Limited Time Access To Certain Forms

Aug 26, 2013

I have database that i am working on , i want to give a user a time limited accsess ( one week ) to the reports section for example !!

after a certain date he will require a password or the report button will be inactive ...

-at program start up , it will check for today's date if it is greater or equal to (lets say ) 24-9-2013 then it will change a field in an X table from "yes" to "no" ,

-after that the code will check table X for the yes no field , if yes then open Form A if no then open form B / or make report button inactive

how to do that in VB ... and is there is a better way to do it ? can it be done in the macro builder ?

View 4 Replies View Related

Close All Forms When New One Opens

Jun 10, 2006

Hi
I am trying to get access to close all open forms and open the selected form when a button is pressed.

I tried this in a macro like so:

open switchboard
open new.client
close (forms)

The switchboard is used as a back drop to the database.
the new client form will open over this (pop up is set to YES)
Any other forms will be closed at this point.

I can only get it to close one form at a time which means I have lots of close commands in each macro.

The problem is, if I add a new form then I have to go through each macro to reset it to take that form into consideration.

There must be an easy way to do this.

Alan

View 6 Replies View Related

Query On Form. (combo Box To Give Criterea)

Mar 22, 2006

I have changed my approach for my database, and i think a query is what i needed all along. But i am not sure how to go about it.

Is it possible to have query results on a form?

more precise, i have a table full products, alot of information per product (about 30-50 fields)

The amount of actual products isn't many probably around 10, and it's likely to stay at around 10 products.

Can i have a drop down list listing all the products, so it looks these up from the product table, you select the product, that product field value becomes the criterea for the query, and all the associated form fields get filled out to do with the product selected.

To summarise, can i have this all done in a form? so it's easy for staff to simple go the to product drop down list, select a product, all the info relating to the product is then displayed on the form.

hopefully i have made sense with my post.

View 10 Replies View Related

Forms :: Delete Button Warning?

May 8, 2013

Windows Vista
Access 2007

I have added a button to a form that would delete a record. This works just fine.

I would like to add a confirmation that this is something that i'd like to do.

View 2 Replies View Related

Forms :: Expiry Date Warning In A Popup

Dec 9, 2013

Can a Form/Query warn when a date is approaching; like in a pop up or any other behaviour?

View 7 Replies View Related

Forms :: Warning On Duplicate Date Entry

Aug 14, 2014

I have a data entry form linked to a table that records daily catch details (date, invoice number, buyer, kilos, price, etc). For the last 2 years I've been using the no duplicate index on the date field of the table to prevent duplicates, until he (my husband) decided that he wanted to sell his catch to different buyers on the same date.

I've changed the index to allow duplicates but now I need to create a message box which warns that he is entering a duplicate date as he has a history of trying to enter the same info twice. I've found examples of code that warns on duplicate text entries but nothing for duplicate dates?

View 12 Replies View Related

Forms :: Click On A Image Opens A Folder

Jul 13, 2014

how can i make a folder from my windows 7 opens when i click on a image?

View 11 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved