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 / May 2008

Tip: Looking for answers? Try searching our database.

Search Form Run Time Error 3075

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
richnida - 26 May 2008 04:31 GMT
I have the following code behind an unbound textbox field, when selected I
get a runtime error 3075 (missing operator).

The variable strErr "FLAGERROR" could be in any field in table that was
either Chr(9), (10), or (13).

Trying to get the form to only show records where "FLAGERROR" may exists.

The Code:

Private Sub cmdErrFlags_Click()

Dim db As Database
Dim strErr As String
Dim strBegin As String
Dim strWhere As String
Dim strWhere2 As String
Dim strWhole As String

Set db = CurrentDb()

strErr = "FLAGERROR"
strBegin = "Update SNDL Set ERRORFLD = -1 "
strWhere = "Where ACTIVITY Like "
strWhere2 = "*" & strErr & "*" & ";"

strWhole = strBegin & strWhere & strWhere2

Debug.Print strWhole
'strWhole is:  Update SNDL Set ERRORFLD = -1 Where ACTIVITY Like
*FLAGERROR*;

DoCmd.RunSQL strWhole            'Run-time error 3075
'Syntax error (missing operator) in query expression 'ACTIVITY Like
*FLAGERROR*'.

End Sub

Thanks,
richnida - 26 May 2008 04:34 GMT
>I have the following code behind an unbound textbox field,

Correction: Command Button

>I have the following code behind an unbound textbox field, when selected I
>get a runtime error 3075 (missing operator).
[quoted text clipped - 35 lines]
>
>Thanks,
karen trufanenko - 29 May 2008 16:20 GMT
>I have the following code behind an unbound textbox field, when selected I
> get a runtime error 3075 (missing operator).
[quoted text clipped - 35 lines]
>
> Thanks,
 
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.