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, 02:00 PM
mindfrost82's Avatar
Administrator
 
Join Date: Mar 2006
Location: Illinois
Posts: 2,262
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
"There Is No Control Called" Requery Control

"There Is No Control Called..." Requery Control Err Msg

The information in this article applies to:
• Microsoft Access 2000

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

SYMPTOMS
When you try to requery a control by using the Requery macro action, you receive an error message indicating that the specified control does not exist even though the control does exist on the form.

MORE INFORMATION
For the Requery Control Name arument, Microsoft Access expects a short control name without any brackets ([ ]). The Microsoft Access Help system states that you should not use the full syntax, but it does not state that the brackets must be omitted, even if the control name consists of more than one word. Because other scenarios require the use of brackets, this inconsistency may be confusing.

The following example reproduces the behavior and discusses a workaround:
1. Open the sample database Northwind.mdb.
2. Open the Products form in Design view. Note that the form has a combo box named SupplierID.
3. Add a command button anywhere to the form.
4. Click the Build (...) button for the command button's OnClick property, and then click Macro Builder in the Choose Builder dialog box.
5. Click OK in the Save As dialog box to save the macro with the default name suggested by Microsoft Access, and then specify the following Action and Action Arguments :
6. Action : Requery
Control Name : [SupplierID]
Note that [SupplierID] is enclosed in brackets.
7. Save and minimize the macro.
8. Switch the form to Form view and click the command button. Note that you receive the following error:
There is no field called '[SupplierID]' in the current record.
9. Restore the macro, remove the brackets from [SupplierID] in the Control Name argument, and then save the macro.
10. Switch the form to Form view and click the command button. Note that the control now works properly.
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 10:23 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:
Secured Loans | Credit Card Consolidation | Loans | Loans | Loans



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