I'm trying to report defects automatically from QTP to QC, but I'm having problems accessing some of the fields in QC. Could anyone help me out?
Here's my code
<font class="small">Code:</font><hr /><pre>
Dim QCConnection

Set QCConnection = QCUtil.QCConnection

'Get the IBugFactory

Set BugFactory = QCConnection.BugFactory

'Add a new, empty defect

Set Bug = BugFactory.AddItem (Nothing)

'Enter values for required fields

Bug.Status = "New"

Bug.Summary = "New defect"

Bug.DetectedBy = "admin" ' user that must exist in the database's user list

'Post the bug to the database ( commit )

</pre><hr />

the fields I can't access are: Build, Team Lead, QA Responsibility, Status Detail.

I tried out
<font class="small">Code:</font><hr /><pre> Bug.field("BG_Team_Lead") </pre><hr />
but it didn't work out

Any help?