General :: Module Crashing After Changing Window Mode In Macro

Sep 10, 2014

We have been calling a main form to manage yacht races using a hyperlink/macro from a selection form which lists all the yacht races ..The main form was too big to fit on some screens so we changed it to pop up mode to allow it to be resized and use scroll bars. this works well when the form is opened manually and all functions run just fine

the hyperlinik/macro for race selection had originally been set up to call the main form in dialog mode but we have had to change this as it disabled the resizing of the form and the scroll bars..The macro tool doesn't offer pop up mode so i selected window mode = normal and the main form opens with a resizable window and scroll bars but all the functions called from this module now fail (error message = use of null value or similar and all the functions go into debug mode - the server is down and i can't access the system to get the exact details)

If i change the macro in the selection form back to window mode = dialog the functions work but i lose the resizing of the main form and and the scroll bars.

View Replies


ADVERTISEMENT

Macro To Run Module - Urgent

Aug 2, 2007

How to run a module in the macro?
Which step can run a module.

There is only option to openmodule action.

Please clarify

View 1 Replies View Related

Macro Running Module Failure

Nov 15, 2006

hey there,
i have a macro that has 2 actions:

set warnings to warning on: NO
and
runCode to Function Name: cmdImport_Click()

where cmdImport_Click() is a Private Sub in a module within the same database.

when i try to run the macro i get an error that stated
"the expression you entered has a function name that MS Access can't find."

but if i open the module called ImportMSExcelFile and set my cursor on the Private Sub cmdImport_Click() and select the green arrow to run the procedure it runs fine.

any suggetions?

tuktuk

View 2 Replies View Related

Call An Excel Macro From Access Module

Dec 7, 2004

I am trying to populate an Excel Shreadsheet (Template in Effect) with Data from Access. This is going ok no problem. Although I need to run an excel macro, which does some formatting to the WorkSheet after each entry in the Access Recordset. I've tried copying the VB over, but getting some errors, and frankly, I think it's easier if I just call the macro itself, rather than try to adapt it for the Access context. Though, I accept it would be a cleaner approach. Can I do this?

View 1 Replies View Related

Reports :: Opening Report In Full Window Mode?

Jan 14, 2014

i have a button opening forms however when they open they appear in window mode and not full screen. is there an option or a line of code of code i am over looking to make it open in full screen mode?

ps. i am using access 2010

View 4 Replies View Related

Forms :: Macro To Open A Form In Hidden Mode

Mar 7, 2013

I have a button using a macro to open a form in Hidden mode. Then I have another button on another form to open this form that was hidden.

When I open the form, the form is virtually blank apart from the form caption name. But when I close this and press the button again the form opens as normal.

I do not understand why?

I was told that once you hide the form and when you open the form again, it should appear normal. Why do I get this blank form??? Only by hitting the button again then the form is normal....

View 13 Replies View Related

Forms :: Design Mode - Changing Tab Order Does Not Work

May 28, 2015

I am going into the Form Design mode

Click in the subform

I then set tab order by selecting the box and moving the field up.

Looks correct and then I click okay.

The subform does not change.

I go back into design mode, click in subform and select tab order and it looks correct????

View 2 Replies View Related

Triggering A Macro To Occur When A Form Window Is Closed

Aug 17, 2006

Hi,

I am wondering whether it is possible to trigger the run of a macro when a form window is closed using the close button in the top right of a standard window?

If not, then is it possible to display a form in a window without the minimize, restore and close buttons?

I am currently using a setup whereby I have a button to close a form, and when clicked a macro is executed. However, the user could just as easily close the form using the close button of the window and the updates would not be performed.

Thanks in advance
Turbojohn

View 2 Replies View Related

Whether To Code In A Form Module Or A Standard Module?

Dec 14, 2007

I'm wondering how other members here make decisions whether they want to place codes behind form or use a standard module instead.

I understand there is a performance penalty when you add another module (and use it), but am not sure whether one big fat module would be faster than several smaller modules with identical coding.

Furthermore, I know that some members use a hidden form to deal with startup and shutdown processing. Sometimes the processing has nothing to do with forms and would make more sense in a standard module, but since the form is already loaded, does it makes more sense to use the module behind the form than calling a function in a separate standard module to execute the needed code?

So, what do you tend to do in such situation?

View 14 Replies View Related

Forms :: Subform Shows In Design Mode But Not In Form Mode?

Sep 22, 2014

I have several subform tabs and one that I have updated no longer shows up when I run the form on Form mode. The tab is there but no content or details of the subform

View 3 Replies View Related

General :: Break Points In Code Module Fail To Work

Oct 16, 2013

Does your Tools Reference have an MS Office 15.0 Object Library?

Just had to share this strange occurrence in the VB Code Module:

I use breakpoints all the time, was just using them yesterday.

Noticed that some events seemed to act differently this morning. The front-end was approaching 88 MB (after compress) so it is time for a change anyway.

Created a new blank Access dB (Access 2010) and imported all objects from my last backup revision. Reset the home page and tools References. Matched the settings side by side. As usual, the database shrank from 88 MB to 60 MB. The import all objects will usually compress things about this much.

From the screen shot, put breakpoints in previous code, added a new Lost-focus event and added a message box. None of the breakpoints work. The message box fires on the lost_focus and all of the code in the Click event works fine. But, not a single break point would work.

Totally powered down and restarted the Windows 7 32 bit Enterprise workstation. Still no change.

Took the screen shot of Tool-References from the code module of a two week old archive version. Used it to evaluate my new imported object database.To my surprise, the Microsoft Office 14.0 Object library is now Microsoft Office 15.0 Object Library.Also put all the objects back in the same order. Saved and closed the new imported object database.Now, the breakpoints work just fine.

I had failed to reference the Office 15 Object Library and the VBA Extensibility 5.Office 14 Object Library is nowhere to be found except on my 2 week old backup archive.

Is this a Microsoft auto update? Is this what drives the breakpoint in the code module?

View 3 Replies View Related

General :: How To Open MDB In Development Mode

Aug 15, 2012

how do I search for how to open an MDB in development mode, not active running mode ?

View 4 Replies View Related

General :: Database Opening In Read Only Mode

Sep 8, 2013

I am having problems opening my databases. Access automatically opens them in 'Read Only' mode, and I cannot find a way to avoid this - so I can never add data to the original tables ....

View 2 Replies View Related

General :: Can't Run Make Table Because Mode Is Disabled

May 17, 2013

How do you establish the Mode. I can't run a Make Table because the Mode is Disabled and blocking the action

View 1 Replies View Related

General :: Calculate Mode Value Of A List Of Words?

Jul 26, 2013

I'm trying to show the modal value of a column in a query that only has text in, not numbers. I want to present this in a text box in a report.

My report already has a query as its record source that only shows data for a given year and given month, these are chosen using parameters created in the query. Thus all I need to figure out is how to show the modal value for the column "Categories" on the report somehow.

Here are my parameters:

Query: [Formula Query]
Column: [Categories]

View 2 Replies View Related

General :: Time Format Changes In Edit Mode

Sep 4, 2012

Started working with access 2010

Have a text field in a form with following relevant properties:

Format tab - Format: Short Time
Data tab - Inputmask: 00:00;0;_
Data tab - Default value: =Time()

Goal: show a default but editable current time in HH:MM format

Behaviour: When entering form current time is displayed in HH:MM - problem is that when I enter field with the curser it automatically changes format to HH:MM:SS.

How can I avoid/control that behavior?

View 6 Replies View Related

General :: Report Does Not Open In Preview Mode On Some Machines

May 21, 2014

I have a button on my form that should open a report in Preview node.

On SOME users machines, it appears that absolutely NOTHING happens when the user clicks the button. (preview mode)

Report parameters that may have some bearing are as follows. (Default settings in most cases)
Default View : Report View
Allow Report View: Yes
Allow Layout View: Yes
Auto Center : Yes
Auto Resize: Yes
Fit to page: Yes

Pop_up: Yes (This is NOT the default setting, as I would prefer the report to pop-up. If the report does not open in pop up mode, the users tend to close the DB instead of just the report.)

On the user machines where the problem exists, I have turned off the pop-up blocker in their web browser. It seems to work when opening in Report View.

Button Macro parameters are:
Report Name: My_Rpt_Name
View : Print Preview
Filter Name :
Where Condition :
Window Mode : Normal

Environment
SQL back end (ODBC Connection to server)
Access 2010 Front end

I am developing the DB in the bog standard install with no special permissions / add-ons. Also, my developer (log on) account is as a standard user, so there should be no (network) permission issues.

When troubleshooting on the user machines, If I open the report in design view and then open in Preview mode, it works.

Is the problem with the Form or the Macro or the Preview mode or maybe some Reg key that must be changed to allow reports as pop-ups?

View 1 Replies View Related

General :: Database In Read Only Mode On Server In Access 2010

Jul 18, 2012

I'm working in Access 2010. I created a database that I want to post in a server on the read-only mode, so that users can not change forms or querys. How can I do this in Access 2010?

View 11 Replies View Related

Error: Member Already Exists In An Object Module From Which This Object Module Derive

Oct 1, 2004

I am creating an form in a database and whenever one of my procedure's run it creates this error message:


The expression ON Load you entered as the event property setting produced the following error:
Member already exists in an object module from which this object module derives.

*The expression may not result in the name of a macro, the name of a user-defined function, or [event Procedure].
*There may have been an error evaluating the function, event, or macro.

An ideas?

View 7 Replies View Related

General :: Split Database With Multiple Users - Read Only Kiosk Mode

Dec 17, 2012

I have two separate database files, a front end with all my forms and a back end with all my tables. The backend is stored on a network drive, is there any way of being able to store the frontend on the drive with the backend? Users do not use the actual computer to store information or access files, everything is usually saved on the network drive. I have created a shortcut that launches the front end database in the read only kiosk mode.

View 5 Replies View Related

General :: Removed Submenu Access On Login Form - Cannot Switch To Design Mode

Apr 21, 2015

I'm working on a login form and *not thinking* I removed access to the submenu. I had already set the form up so that you either login correctly or exit the program. I'm working in code for the form and I know it's possible to reactivate the menu in code, I just don't know how. And I can't switch to design mode. The form is set up to not allow anything to happen until the correct login has been entered, and I either had a typo when I set up my test login or the program is bugged and only says it's incorrect....

View 1 Replies View Related

General :: Update Records From A New Window?

Mar 1, 2013

I am trying to UPDATE records from the Master form by clicking a button to a new window -

frmCustomerMaster (main form) - a button will trigger to UpdateCustomerMaster new window and pass all the data to the new window.

UpdateCustomerMaster (New window Form) On Submit Update values.

frmCustomerMaster (main form) - is currently locked by properties, I do not want main form to be editable.

how to pass the data to new window and how to update the records?

View 8 Replies View Related

General :: Opening Hidden Excel Window With VBA

Aug 10, 2013

I need Access to open an Excel file prior to pulling information from it, because the Excel file itself only updates when it is opened. I was able to achieve this with the code below:

Quote:

'Opens a hidden Excel window.
Dim app As New Excel.Application
app.Visible = False
Dim book As Excel.Workbook
Set book = app.Workbooks.Open("S:OperationsAssistantDataba sesBUSES.xlsx")

[code]....

This works fine if NO Excel window is already open, but if the user happens to have some file open in Excel already, my code doesn't seem to work right. The file does not open in a hidden window. Instead, it opens in the window already open, and additionally, the file is not closed afterward, which leaves the user wondering where the hell this random file came from, and they have to close it. I need this Excel file to open, but I want it to be completely hidden from the user.

View 4 Replies View Related

General :: How To Stop Users From Ever Seeing Database Window

Feb 28, 2014

I have included some code to disable the access PassKey (holding shift down as you open the database so that the database window appears). It is password protected and it works pretty well for normal users.

However, I have realised that even in this restricted mode you can go to File-Options-Current database and enable Access Keys. This then lets you open the database window by pressing F12.

My question is, is there a way to absolutely stop anyone from ever viewing the database window at all? All my code is password protected, but I still don't want an ICT person fiddling with my tables and queries!

View 4 Replies View Related

General :: Hide Database Window And Appear Once Closed

Jan 20, 2014

I have a database and I need it so once the database file is launched the Database window & tool bars are hidden so people cannot see them. Along with that once the operator clicks on "Exit" on the main menu I would want it to close the database but display all of the Windows / Tool Bars again.

View 4 Replies View Related

General :: Setting Open New Window Value To True

Jan 16, 2013

I was reading how to make a a button open a webpage. I found out how to and what to type in the Visual Basics. It worked but like another user said, when ever he clicks the button, the window opens for the website but the window is not maximized. He said "I set the open new window value to True".

View 1 Replies View Related







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