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

Argh, it keeps saying "Expected: = " when I call this Sub

Status
Not open for further replies.

Snipor

Programmer
Feb 23, 2001
92
US
Heres what I got:

Public Sub WriteDataCheck(Optional strPublisherName As String, Optional curTotal As Currency)

Open "datacheck" & Date & ".log" For Append As #1 'Writing information for check and wire transfer info
Write #1, strPulisherName, curTotal
Close #1

End Sub

And then I call the sub like this:

WriteDataCheck(mrstPublisher.Fields(0), pcurTotalDue)

When I type in the above line, it pops up a compile error stating "=" expected. Please help!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top