compatui.dll version 1.0 is missing

Anonymous
2013-11-22T15:18:10+00:00

Hello,

I have a data base in Access written for Access 2003. I tried to access it through Access 2007 and it gives me that that compatui.dll version 1.0 is missing, and then it shows me (and error maybe) in the following code (and the error line is indicated):

[code]

Private Sub cmbUsername_AfterUpdate()

' Find the record that matches the control.

Dim rs As Object

Set rs = Me.Recordset.Clone

[HERE IN THIS LINE >>>>]rs.FindFirst "[Id] = " & Str(Me![cmbUsername])

Me.Bookmark = rs.Bookmark

If IsNull(Me.Password) Or Me.Password < " " Then

Me.txtPwd.Enabled = False

Else

Me.txtPwd.Enabled = True

End If

End Sub

[/code]

So I have few questions:

(1) What does compatui.dll does? Is it a library for string handling? Or is it a library for interface as the name suggests?

(2) Is there a way to fix the code so that it becomes compatible with all other Access versions?

(3) If now, how do I fix that on Access 2007 with minimum installations?

Thanks for your help in advance.

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Anonymous
    2013-11-22T18:07:30+00:00

    If you verify your Reference Libraries (Tools->References), are any of them marked as MISSING?  If so, then you need to update your references or remove any that are not actually required.

    Also, does you code compile?

    I moved the file compatui.dll from Windows XP System32 folder to my Windows 8 System32 folder and it worked fine.

    It only compiled the username/password window, but nothing else.

    Just to test what you said, I removed the file and opened the Access file. I checked Tools, but I cannot select References. It is dim.

    I still don't know what the reference does. I want to change the code so that the user does not have to install that file. :/

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2013-11-22T17:30:30+00:00

    If you verify your Reference Libraries (Tools->References), are any of them marked as MISSING?  If so, then you need to update your references or remove any that are not actually required.

    Also, does you code compile?

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments