DataType Mismatch (2 Viewers)

Bigmo2u

Registered User.
Local time
Today, 08:57
Joined
Nov 29, 2005
Messages
200
I get lthompson : Lori Thompson

Runtime error '3021
No current record
 

Bigmo2u

Registered User.
Local time
Today, 08:57
Joined
Nov 29, 2005
Messages
200
Does it make a difference the form is a Pop Up form?
 

bob fitz

AWF VIP
Local time
Today, 14:57
Joined
May 23, 2011
Messages
4,726
What is the Record Source of the form.
 

pr2-eugin

Super Moderator
Local time
Today, 14:57
Joined
Nov 30, 2011
Messages
8,494
lthompson is a String, so this should work, as long as the recordsource of the form contains the OwnerID field in it.
Code:
Dim rs As DAO.Recordset

Set rs = Me.Recordset.Clone
Msgbox Me.lstUsers.Column(0) & " : " & Me.lstUsers.Column(1)
rs.FindFirst "[OwnerID] = '" & Me.lstUsers.Column(0) & "'"
Me.Bookmark = rs.Bookmark
 

Bigmo2u

Registered User.
Local time
Today, 08:57
Joined
Nov 29, 2005
Messages
200
pr2-eugin,

I get No current record found. after it displays the msgbox. but it does display info in the msgbox.
 

pr2-eugin

Super Moderator
Local time
Today, 14:57
Joined
Nov 30, 2011
Messages
8,494
No offense, but on a scale of 1 to 10 where will you place yourself with MS Access proficiency?

Is ownerID field in the tblOwner table?
 

bob fitz

AWF VIP
Local time
Today, 14:57
Joined
May 23, 2011
Messages
4,726
Can you post a copy of the db in A2003 mdb format for us to play with.
 

Bigmo2u

Registered User.
Local time
Today, 08:57
Joined
Nov 29, 2005
Messages
200
Okay, fixed it... The form property Data entry was clicked Yes and that is why it would not return the value on the form.

I am so sorry for wasting your time on this one. god I make some stupid mistakes.

Thank you for all your time and effort.
 

bob fitz

AWF VIP
Local time
Today, 14:57
Joined
May 23, 2011
Messages
4,726
Okay, fixed it... The form property Data entry was clicked Yes and that is why it would not return the value on the form.

I am so sorry for wasting your time on this one. god I make some stupid mistakes.
Glad you have it working now.
Don't worry, we ALL make elementary mistakes some times. It's only the dammed computers that don't.
Hopefully, this is another lesson learnt for all of us.
 

Users who are viewing this thread

Top Bottom