Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / July 2008

Tip: Looking for answers? Try searching our database.

Run Time error 3077

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joe - 31 Jul 2008 19:53 GMT
I have an access 2003 database that has a combo box on a form. It was working
for the past two days, but today it is giving me the Runtime Error 3077 when
I search for a record in the list. Can you please help me out. Below is the
error code.

Private Sub Combo15_AfterUpdate()
   ' Find the record that matches the control.
   Dim rs As Object

   Set rs = Me.Recordset.Clone
   rs.FindFirst "[University/Hospital] = '" & Me![Combo15] & "'"
   If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub

Thank You.
Klatuu - 31 Jul 2008 22:39 GMT
There are a number of problems with your code.
Try using this version:

Private Sub Combo15_AfterUpdate()
   ' Find the record that matches the control.

   With Me.RecordsetClone
       .FindFirst "[University/Hospital] = """ & Me![Combo15] & """"
       If Not .NoMatch Then
           Me.Bookmark = .Bookmark
       End If
   End With
End Sub

Signature

Dave Hargis, Microsoft Access MVP

> I have an access 2003 database that has a combo box on a form. It was working
> for the past two days, but today it is giving me the Runtime Error 3077 when
[quoted text clipped - 11 lines]
>
> Thank You.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.