slight error in link criteria syntax code

antonyx

Arsenal Supporter
Local time
Today, 16:33
Joined
Jan 7, 2005
Messages
556
Code:
stLinkCriteria = "[JobRef]=" & "'" & Me![jobref] & "' & [fkAccountTypeID]=1"

the job ref is gathrered from my jobref control but the account type i want to set it to 1 manually..

this compiles but no values are sent across to my second form.. whats wrong?
 
I think
Code:
stLinkCriteria = "[JobRef]='" &  Me![jobref] & "' AND  [fkAccountTypeID]=1"

Peter
 
no same problem.. it compiles but nothing is sent across... the form that opens is just blank with no fields displaying
 
ill just add that the below line successfully sends across the job ref.. im just trying to expand this statement now..

Code:
stLinkCriteria = "[JobRef]=" & "'" & Me![jobref] & "'"
 
fkAccountTypeID is a number datatype

if we just look at this part..

Code:
[fkAccountTypeID]=1

is this the correct way to assign a number value to a number datatype??
 
this doesnt even work..

Code:
stLinkCriteria = "[fkAccountTypeID]=1"
 
check the spelling of fkAccountTypeID and make sure that its data type is numeric

Peter
 

Users who are viewing this thread

Back
Top Bottom