Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

no definition for fonction error 1

Status
Not open for further replies.

Xenocide

Programmer
Jan 20, 2005
76
CA
Hi

strSQL1 = "UPDATE [" & Me!lst1.Column(0) & "]
SET MontantActuel = txt1.Value
WHERE IdEngagementA = lst1.Column(1)"

it create an error about a no definition for lst1.Column (the last one)

somebody know what it is?
 
If this is on one line, I suppose

[tt]strSQL1 = "UPDATE [" & Me!lst1.Column(0) & "] SET MontantActuel = txt1.Value WHERE IdEngagementA = " & lst1.Column(1)[/tt]

If IdEngagementA is a text field, you'll need single quotes (text delimiters)

Roy-Vidar
 
Oh, and concatenation goes also for the text control - and, single quotes should MontantActuel be a text field.

[tt]strSQL1 = "UPDATE [" & Me!lst1.Column(0) & "] SET MontantActuel = " & txt1.Value & " WHERE IdEngagementA = " & lst1.Column(1)[/tt]

Roy-Vidar
 
Thanks it's not doing the error anymore.. although it's updating 0 line in my table :p

I'll find what cause that eventually

htanks for the help again
 
WHERE IdEngagementA = '" & lst1.Column(1) & "'"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Thanks for the help but someone was faster then you PHV :p

and if it's for the 0 line updated that's not it.. prally some other error.

I'll find it eventually
 
Have you solved your problem selecting IdEngagementA differently for each table ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
sorry for the big delay but I left work before yur message and I don't do anything work related after the hours :p

For the selecting of IdEngagement yeah it was solved. Redoing the table seem like it solved it all.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top