comdlg32.ocx - Microsft Common Dialog Control issue

I have used an application developed in Access 2003 very well. I bought a new 
machine with Windows 7 and reloaded Access 2003 (Office 2003).
It now does not run a function within the application.
I believe comdlg32.ocx is the problem.
I unselected Microsoft Common Dialog Control 3.0 (SP3) and it has 
disappeared as well.

Error
Run time error 438 - Object does not support this property or object
Function
Private Function fileName() As String
   Me.CommandOpenFileDialogue.Filter = "Text|*.txt|All|*.*"
   Me.CommandOpenFileDialogue.ShowOpen
   fileName = Me.CommandOpenFileDialogue.fileName
End Function

I have uninstalled and reloaded without any luck. Any suggestions would be 
appreciated.
-- 
Duncan Edgar
0
Utf
4/3/2010 4:23:01 AM
access 16762 articles. 3 followers. Follow

2 Replies
3091 Views

Similar Articles

[PageSpeed] 55

Remove
"Duncan Edgar" <DuncanEdgar@discussions.microsoft.com> wrote in message 
news:B8F8CCA2-A2B3-4301-8FB9-26EDE7310EB6@microsoft.com...
>I have used an application developed in Access 2003 very well. I bought a 
>new
> machine with Windows 7 and reloaded Access 2003 (Office 2003).
> It now does not run a function within the application.
> I believe comdlg32.ocx is the problem.
> I unselected Microsoft Common Dialog Control 3.0 (SP3) and it has
> disappeared as well.
>
> Error
> Run time error 438 - Object does not support this property or object
> Function
> Private Function fileName() As String
>   Me.CommandOpenFileDialogue.Filter = "Text|*.txt|All|*.*"
>   Me.CommandOpenFileDialogue.ShowOpen
>   fileName = Me.CommandOpenFileDialogue.fileName
> End Function
>
> I have uninstalled and reloaded without any luck. Any suggestions would be
> appreciated.
> -- 
> Duncan Edgar 

0
David
4/3/2010 1:47:49 PM

"Duncan Edgar" <DuncanEdgar@discussions.microsoft.com> 写入消息 
news:B8F8CCA2-A2B3-4301-8FB9-26EDE7310EB6@microsoft.com...
> I have used an application developed in Access 2003 very well. I bought a 
> new
> machine with Windows 7 and reloaded Access 2003 (Office 2003).
> It now does not run a function within the application.
> I believe comdlg32.ocx is the problem.
> I unselected Microsoft Common Dialog Control 3.0 (SP3) and it has
> disappeared as well.
>
> Error
> Run time error 438 - Object does not support this property or object
> Function
> Private Function fileName() As String
>   Me.CommandOpenFileDialogue.Filter = "Text|*.txt|All|*.*"
>   Me.CommandOpenFileDialogue.ShowOpen
>   fileName = Me.CommandOpenFileDialogue.fileName
> End Function
>
> I have uninstalled and reloaded without any luck. Any suggestions would be
> appreciated.
> -- 
> Duncan Edgar
>
> __________ Information from ESET NOD32 Antivirus, version of virus 
> signature database 4996 (20100403) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
> 

__________ Information from ESET NOD32 Antivirus, version of virus signature database 4996 (20100403) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



0
utf
4/3/2010 5:14:56 PM
Reply:

Similar Artilces:

Enter Key Jump controls
Hello. I have a Dialog and several Edit Box. when i press control Key my program stops. I'd like to press enter key and jump to the next edit box or another control. Any help?? >when i press control Key my program stops I am not sure why this is happening? You could add PreTranslateMessage(MSG* pMsg) to the Dialog Then change the keys, or move to some other control, or do whatever you want to do. I'm not sure if you have to do this to each control, or just the dialog in general. From experience, I would not change the default behavior, such as tab moves to the next control Whe...

Copy a currency value from one control to another
I have a text box (called ExtendedCost), that has a sum statement in it. I want to copy the value on the exit control event to another text box control (called WithdrawlAmount) on the same form and write the value into WithdrawlAmount box on the Enter Event for the control box, so people don't have to input the same number into the control box. Is there an easy way to do this? If it's the same calculated value, just use the same expression. Generally, don't store calculated values. Just perform the calculation as needed. If you need more help with this, describ...

'Assign Macro' dialog missing in Excel XP
I'm trying to assign a macro to a command button, however the 'Assign Macro' dialog is missing from the context menu when right clicking the button. I have only been to do it when having opened an old worksheet (created in excel 97) with existing command buttons & macros, then the option is there to assign a macro. I have searched the net for a solution however to no avail. I know it is possible since Excel Help states that is the official way to do it. I have office Xp installed with service pack 2. I hope you will be able to help me. Thank you It's possible ...

How to transparent editbox control works correctly...
Hi i am working on an application where i have dialog based application. On dialog there is a picture control which displays a picture. Now i want to put an edit box. Text box string is current time which i am getting from OnTimer handler. i want that editbox control should be transparent except text in it. for this i have work with following code and get succeed in OnCtlHandler of dialog if(pWnd->GetDlgCtrlID() == IDC_EDT_Isha) { pDC->SetBkMode(TRANSPARENT); hbr = (HBRUSH)GetStockObject(NULL_BRUSH); } it makes the backgound tranparent but when the value of the edit box change...

send and receive issues
I have a new earthlink.net account and continue to get error messages when sending and receiving. I follow through with the suggested "fix" only to encounter a new error the next day. I notice that many of the issues seem to be from other earthlink users. Am I correct in this assessment or is it coinsidence? Anyway, my latest Outlook 2003 challenge on my XP Home Ed is this- Task 'pop3.earthlink.net - Sending' reported error (0x80042109) : 'Outlook is unable to connect to your outgoing (SMTP) e-mail server. If you continue to receive this message, contact your server a...

Direct Debit posted control
Currently GP will assume once a customer is marked with bank account details the system will assume all invoices are taken by DD and the only time this can be amended is prior to posting to the ledger. The ability to amend a posted invoice to either be DD payment or remove the DD payment until the invoice is fully paid would be useful ...

database query/names issue, causing excel to be sluggish
I have an issue with an excel worksheet I've created. WorkbookA has "Names" which are used to define drop-down menus in WorksheetA. These "Names" are defined to reference a WorksheetB (also in WorkbookA) which itself is populated by a database query, pulling from another Excel WorkbookB. The logic is that WorkbookB should not be touched by the User, only an Admin, and Workbook A is used by User. The Names in WorkbookA are to prevent incorrect entries. Now that I've set it up, WorkbookA is moving really sluggish, but if I delete all the Names it speeds up again....

blinking tabs in an owner drawn tab control
Hi all, I need to blink tab or atleast tab text in an owner drawn CTabCtrl derived Tabcontrol. Please guide me how to do it. Regards Shoeb Implement WM_TIMER (SetTimer/OnTimer...). In OnTimer message handler change something conserning what you want to blink (text- or bk-color or some font parameters or something else what makes sense for you) Victor "shoeb" wrote: > Hi all, > I need to blink tab or atleast tab text in an owner drawn > CTabCtrl derived Tabcontrol. Please guide me how to do it. > > Regards > Shoeb > &g...

Refering to control property on a form in VB
Hi I am trying to simply my code in a application by using a sub routine to amend the control properties of a form but I can't seem to get basic to accept the control property being sent to the routine as a string The code I am using is : Private Sub lSubControlPropertySet(stForm As String, stControl As String, stProperty As string, varValue As Variant) If IsNull(varValue) = True Then Forms(stForm)(stControl)(stProperty) = "" Else Forms(stForm)(stControl)(stProperty) = var...

Adding custom fields to dynamically created controls.
I created a custom Outlook (2003) form that imports data from Access to populate user defined fields and create additional controls based on the number of records in an Access query. Everything works fine except the data the user enters for the dynamically created controls don't hold their value when the form is sent. I am quessing that is because there is no user defined fields bound to them. (how do I do this) I have been looking on the net but cannot find anything close enough. Any help (examples) would be appreciated. Look at http://www.outlookcode.com/d/formcontrols.htm, lots of inf...

How to control graph area
Still running stone age version of excel (97). Att least in this version it is very difficult to control the size of the diagram area when you cetreate a graph with the diagram tool. This problem is dual. On the one hand there is no entry/input (that I can find) to specify an EXACT diagram area (in pixels, cm etc. On the other hand if you use the drawing to to create the exact borders of the desired area and then adjust the diagram (the coordinate system) acrodingly - the d' thing won't remain stable. Now is ther anyone out there how knows what to do. A hidden surface entry for...

Bug: (MFC 7.1) Paste into CRichEditView copied from other RichEdit control
Recently, I was helping someone figure out a problem in an MFC application recently upgraded to VC 7.1 (MFC 7.1) from VC 6.0 (MFC 6.0). While running on Windows XP, if you copied text from another CRichEditCtrl, CRichEditView, or another application using RichEdit like WordPad or Word, pasting what you've copied into a CRichEditView would paste nothing. When googling to try to find clues, most of the time there was either no response to the question, or the work around was to change the "copy" end that you controlled, and only put CF_TEXT on the clipboard. However, it ...

How to add Upper/lower control limit lines to a graph (not drawn)
I have several quality charts that I do monthly. How can I get the the upper, lower and center lines to appear at a specific data point (number) as part of hte chart format. In other words, withiout having to use the Draw Line tool each time? Excel 2003. Fake it. In other words, seutp some "dummy" series that are calculated, and plot them on your chart. Format them to look however you like, and remove the original chart gridlines. If you have a legend, single-click twice the legend entry for your dummy series and press delete. If done correctly, the entry will not...

Looking for control to browse files
Hi, I am pretty new to and unexperienced with access (2007 is the one I amworking with) I have made a database (of 1 table) to record registered mail and such. I have added a hyperlink field which contains the link to a specific transmittal document showing the contents of the mail item. I have added it to the form and it works fine. If I click on the link it opens the (Word) transmittal file). So far so good. What I want is a control that lets me browse for the transmittal file, something like a simple Open dialog Can someone point me to the right documentation, please ...

most common data
I have column A consists of employees names obviously in text format. Is it possible to say have cell B1 populated with the name that aears the most? Hi, Try this ARRAY formula. See below on how to enter it and adjust the range to suit. =INDEX(A1:A20,MATCH(MAX(COUNTIF(A1:A20,A1:A20)),COUNTIF(A1:A20,A1:A20),0)) This is an array formula which must be entered by pressing CTRL+Shift+Enter 'and not just Enter. If you do it correctly then Excel will put curly brackets 'around the formula {}. You can't type these yourself. If you edit the formula 'you must enter i...

Statistical Process Control chart
Has anyone drawn SPC Chart in Microsoft Excel? Hi, Maybe have a look here http://peltiertech.com/Excel/Charts/statscharts.html http://www.processtrends.com/pg_charts_control_chart.htm Cheers Andy Tang Leep Boon wrote: > Has anyone drawn SPC Chart in Microsoft Excel? -- Andy Pope, Microsoft MVP - Excel http://www.andypope.info ...

Set control AfterUpdate event to procedure in another module
Hi, i know i can set a controls AfterUpdate event to a user defined procedure if it is in the same module as the code, however is it possible to set it to a procedure in a different module? i.e. By setting in the OnFormLoad() event: cbo.AfterUpdate = "=Module1.Translate()" I cant get it to work, it just says "the expression you entered has a function name that microsoft office access cannot find". The Translate procedure is public. Any thoughts much appreciated. Thanks in advance, Chris If Module1 is a standard module (not a class module, and not the module of a form...

How to have auto dialog box showing when selecting cell
I would like to have a dialog box appear each time a cell is selected in a column. I need the dialog box show the next cheque number and allow the user to change that if necessary. The cells cannot have a formula in it as that would cause problems when sorting. Is there a way to do this? Rob You could use data validation to do this. Firstly in an empty area of the worksheet define a cell that is equa to max(column range where the cehque numbers are shown) + 1. (ie max(a:a) + 1 Then set the data validation for the whole cheque input range to list list = the address of the new cell. Th...

Mouse/scrolling issue-Returns to the beginning of the document
Why is it doing it and how can I eliminate it? I am going to go nuts if I cant fix this A Laptop with a touchpad? It is usually an oversensitive touchpad. Try disabling the Touchpad to see if that eliminates the problem. If it does, go into the Touchpad settings and desensitise the pad or disable the 'click' feature. -- Terry Farrell - MSWord MVP "Brooksy" <Brooksy@discussions.microsoft.com> wrote in message news:C1424EEB-C5B5-4AFE-A127-C5F9B3BE03C9@microsoft.com... > Why is it doing it and how can I eliminate it? I am going to go nuts if I &g...

60 day free MS Office 2007 installation issues
until I receive my new copy of MS Office 2007 I want to use the free 60 day trial but when I try and register the trial key I get a error message that says a communication error has occured try again later??? I need this now and it has been giving me this error all day? HELP!! Was the Trial preinstalled or did you download it from MS? Did you purchase Office on line, and are using the key mailed to you? "HollyZ27" <HollyZ27@discussions.microsoft.com> wrote in message news:8D287919-F72A-467F-8018-8C0C2063275F@microsoft.com... > until I receive my new co...

Dragging to select multiple rows causes out of control scroll
When I select a number of rows by click and drag method, the rows scroll by too fast to control. Is there a way to slow down this scrolling? "ronlee67" <ronlee67@discussions.microsoft.com> wrote in message news:D2940A38-DDA3-4E4B-B41A-FCEFAA3ADACA@microsoft.com... > When I select a number of rows by click and drag method, the rows scroll > by > too fast to control. Is there a way to slow down this scrolling? Hi Roplee67, You can change the scroll speed of your mouse: Start | Control Panel | Mouse | Wheel | Scrolling Depending on your OS version, access to ...

Dynamic creation of owner-drawn button inside a dialog
Hi some months ago I created a owner-drawn button class that works really fine when assigning this class to a resource id via a DDX member variable. But now we want to reuse this class for dynamic creation of a button control inside the OnInitDialog member funtion of a dialog. Creating the control like that MyButton.CreateNULL,NULL,WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON|BS_OWNERDRAW,CRec t(0,0,100,100),this,2); seems to be OK. But the button never appeared inside the dialog. DrawItem of the button class is never called. So what may be missing? Thanks in advance Bernd How have you declared My...

DPM 2010 Install issue
I am getting the following failure anyone know the answer: New 2008 R2 install for both DPM and SQL2008: [3/15/2010 5:28:37 PM] * Exception : => System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.Internal.EnterpriseStorage.Dls.UI.Library.Reporting.ReportingException: exception ---> System.Web.Services.Protocols.SoapException: The report definition is not valid. Details: Invalid character in the given encoding. Line 1985, position 17. at System.Web.Services.Protocols.SoapHttpClientProtocol.Read...

Regional Options from control panel not displayed in Format Cells
Please can somone help me. I have searched on this topic but Alas I can not find an answer. So here is my question. When you set your number formats under control panel -> Regional options they are the ones EXCEL should use for formatting. My example is I want Parenthesis around my negative numbers ( ) . I do not want a - sign infront of number or it to be RED. So I have set my negative number symbol to () under the regional options. But if you start Excel and put in a negative number then goto Format cells -> numbers the option STILL show only a - or RED. I.E. it does not give...

Getting the main dialog in MFC
Is the a function to get the main dialog similar the the ::AfxGetMainWnd() to get the main window? Just AfxGetMainWnd() ? It'll return a CWnd pointer to your main window. Or do you mean in the WinAPI? Gordon Jeffrey wrote: > Is the a function to get the main dialog similar the the > ::AfxGetMainWnd() to get the main window? -- Maarten Kools ___________________________________________ Van Gennep - Media Automation Consulting bv Burg. Stramanweg 105 1101 AA Amsterdam The Netherlands Phone: +31-20-697 6029 Fax: +31-20-697 2249 E-mail: mkools@vangennep.nl WWW: http://www.van...