Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Access > Support Documents

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-08-2006, 01:54 PM
mindfrost82's Avatar
Administrator
 
Join Date: Mar 2006
Location: Illinois
Posts: 2,261
Sex: Male
My Mood:
Thanks: 5
Thanked 6 Times in 6 Posts
Send a message via ICQ to mindfrost82 Send a message via AIM to mindfrost82 Send a message via MSN to mindfrost82 Send a message via Yahoo to mindfrost82
Form Name Err Msg Using Data Outline Control

Form Name Err Msg Using Data Outline Control (95/97)

The information in this article applies to:
• Microsoft Access for Windows 95, version 7.0
• Microsoft Access 97
• Microsoft Visual Basic for Applications


SYMPTOMS
Moderate: Requires basic macro, coding, and interoperability skills.

When you double-click a row in your Data Outline Control, you may receive the following error message:
The action or method requires a Form Name argument.
This article assumes that you are familiar with Visual Basic for Applications and with creating Microsoft Access applications using the programming tools provided with Microsoft Access. For more information about Visual Basic for Applications, please refer to your version of the "Building Applications with Microsoft Access" manual.

CAUSE
The Data Outline Control's FormName property for that level is blank.

RESOLUTION
You can either change the Data Outline Control to open a form at that level or create a Visual Basic for Applications procedure that will cancel the event if the FormName property is blank. To create this procedure, follow these steps:
1. View the form containing the Data Outline Control in Design view and using the right mouse button (right-click), click the Data Outline Control.
2. Click Build Event.
3. Select RequestFormOpen in the Procedure (Proc list.
4. Add the following sample code to the Data Outline Control's RequestFormOpen event:
5. Sub ActiveXCtl0_RequestFormOpen(Cancel As Integer, ByVal Level As _
6. Integer)
7.
8. Dim L As Object
9. Set L = Me![ActiveXCtl0].Object.Levelinfos
10. If L(Level).FormName = "" Then Cancel = True
End Sub
This procedure prevents the Data Outline Control from trying to open the form if the FormName property is blank.

MORE INFORMATION
Steps to Reproduce Behavior
1. Open the sample database Northwind.mdb.
2. Create a new, blank form.
3. On the Insert menu, click ActiveX Control (or Custom Control in Microsoft Access 7.0).
4. In the Insert ActiveX Control dialog box, select Data Outline Control 1.2 (or Data Outline Control 1.1 in Microsoft Access 7.0), and then click OK.
5. On the Edit menu, click Data Outline Control 1.2 Object, and then click Properties.
6. Click the Level One tab and type Categories in the RecordSource property.
7. Type CategoryName in the DisplayFields property, and then click OK.
8. View the form in Form view, and double-click any row in the Data Outline Control.
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Access > Support Documents


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:31 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Per Insurance | Gas Suppliers | Buy Anything On eBay | eHarmony Coupon | Mortgage



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114