Comma, ')', or a valid expression continuation expected
hi,
i am working in vb.net 2005 and Microsoft DynamicsAX4.0
AxRecord.ExecuteStmt("Select * From %1 Where (%1.AI_ORGLAYER=='所属') && (%1.AI_ORGANIZATIONCODE == '" & struOrganizationData.OrganizationCode & "') && (%1.parentOrganizationId =='" & struOrganizationData.ParentOrganizationID & "') && (%1.HRMORGANIZATIONID != '" & struOrganizationData.OrganizationID_OldKey & "')")
in this query it shows the compilation error as Comma, ')', or a valid expression continuation expected in the above mentioned line.so please any one help me solve this problem please
Re: Comma, ')', or a valid expression continuation expected
In VB.NET , if a statement uses more than one line you must add " _" at the end of each line that is not the last one. the underscore is the continuation character.
Example
my_variable = _
my_other_variable
Hope this helps.
ALex