Nov 29th, 2007, 08:22 AM
Comma, ')', or a valid expression continuation expected
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
Nov 29th, 2007, 08:39 AM
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.
my_variable = _
Hope this helps.
Click Here to Expand Forum to Full Width
Survey posted by VBForums.