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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Subroutine Error

Status
Not open for further replies.

TimGoff

Technical User
Jul 16, 2002
166
GB
Hi,

Please see sub below...when I attempt to write in my code the line...

UpdateProgRights (RstRights, True)

...I get an expected:= error

I can't see what is wrong! Anybody any ideas?

Thanks
Tim

Sub UpdateProgRights(rstRecordset As Recordset, blnNoRightsExist As Boolean)

With rstRecordset
.AddNew
!TerritoryID = Me.cmbTerritory
!ThirdPartiesID = gintThirdPartyChosen
!NoRightsExist = blnNoRightsExist
.Update

End With

rstRecordset.Requery

End Sub
 
Hi

Well it should be

UpdateProgRights RstRights, True

you only use () with functions

Regards


Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
UK
kenneth.reaySPAMNOT@talk21.com
remove SPAMNOT to use
 
Cheers Ken

Knew it would be something very simple like that

Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top