Error in Query looking at Form Records (1 Viewer)

Gismo

Registered User.
Local time
Today, 19:45
Joined
Jun 12, 2017
Messages
1,298
Hi All,

i have a for which is in focus
the query looks at a few records and scenarios but when i run the query i get and error that i can not find the value of 2 record
i just re entered the criteria but still same error

Form
1594903003977.png


Query:

# UPDATE [SB TBL History Qry] SET [SB TBL History Qry].[Select] = True
WHERE ((([SB TBL History Qry].[Select])=False) AND (([SB TBL History Qry].SBNo)=[Forms]![SB TBL History]![Select SB TBL History].[Form]![SBNo]) AND (([SB TBL History Qry].Updated)=False) AND (([SB TBL History Qry].[Applicable to AHZA])=True)) OR ((([SB TBL History Qry].[Select])=False) AND (([SB TBL History Qry].Updated)=False) AND (([SB TBL History Qry].[Applicable to AHZA])=True) AND (([SB TBL History Qry].SB_Attachment)=[Forms]![SB TBL History]![Select SB TBL History].[Form]![Attachment]));#

1594903095877.png
 

theDBguy

I’m here to help
Staff member
Local time
Today, 09:45
Joined
Oct 29, 2018
Messages
21,447
Hi. Are you getting an error message about multi value fields?
 

Gismo

Registered User.
Local time
Today, 19:45
Joined
Jun 12, 2017
Messages
1,298
i used the builder to create the 2 criteria so not sure why it did not like the name of the subform
 

Gismo

Registered User.
Local time
Today, 19:45
Joined
Jun 12, 2017
Messages
1,298
You may have to post a demo db.
This DB is massive with all the Tables linked to different back ends
not sure i will be able to send you the DB

i even deleted the sub form and re created it, still no luck
 

Gismo

Registered User.
Local time
Today, 19:45
Joined
Jun 12, 2017
Messages
1,298
i made a link to the 2 controls from the sub form on the main form and then ran the query only from the main form
for new it seems to be working fine

when i save, close the DB and open it again, i get the same error
 
Last edited:

theDBguy

I’m here to help
Staff member
Local time
Today, 09:45
Joined
Oct 29, 2018
Messages
21,447
i made a link to the 2 controls from the sub form on the main form and then ran the query only from the main form
for new it seems to be working fine

when i save, close the DB and open it again, i get the same error
Unfortunately, this makes it hard for us to troubleshoot without seeing it. Sorry.
 

Users who are viewing this thread

Top Bottom