Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Runtime Error 2118, Must Save Current Field B4 you run Requery

Runtime Error 2118, Must Save Current Field B4 you run Requery

Runtime Error 2118, Must Save Current Field B4 you run Requery

This problem has recently raised it head, where by what once worked now produces the runtime error. I have an unbound combo box, on a main form, which on not inlist, calls a separate form where information can be added. On save or close this form calls up the Combo and askes it to be requeried, so the user could select the new information. Simple it worked for untill the server was upgraded to Win2000, so not sure if this is the starting point.
Code is as follows.

Private Sub Form_Close()

DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
'Record is saved. Requery Combo72 in Add Sales Register to update its list.
[Forms]![Sales Enquiry Register]![Combo72].Requery

End Sub

any suggestion welcomed, other alternatives please.
Kind Regards.

RE: Runtime Error 2118, Must Save Current Field B4 you run Requery

Yeah, if somebody figures out how to do this I'd like to know, too. I finally changed my combobox to LimitToList="No" and wrote my own code to put in the BeforeUpdate sub that saves the field, then checks it against the table. If the entry is not in the table, it opens a new form to enter it then requeries the combobox when the first form gets focus again. Works for me; I spent beaucoup time trying to figure aout a workaround using LimitToList = "Yes".

The Missinglinq

"It's got to be the going,
not the getting there that's good!"
-Harry Chapin

RE: Runtime Error 2118, Must Save Current Field B4 you run Requery

If Anyones Interested I may have resolved the problem.
In the Combo boxes On NotInlist, just after the Instruction to open the other form i have entered the following.


This seems to undo the text in the field and set it to null so the Run time error doesn't occur.

The other form can then requery the Combo box with out worry.
Found the tip whilst surfing so take no credit for it.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close