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

don't understand "there is no object in this control" message

Status
Not open for further replies.

sk8er1

Programmer
Jan 2, 2005
229
US
In the following routine, I am getting an error message..."There is no object in this control" on the txtDateOn = recServices!DateOn

Can someone shed some light here....


Private Sub LoadControls()
' If the file is not empty load up
If Not recServices.BOF Then

' examine the filed under group
cboFiledUnder = recServices!FiledUnder
If recServices!FiledUnder = "Civic Group" Then
CGName.Visible = True
CGName.Enabled = True
CGName.SetFocus
CGName.BackColor = vbYellow
CGName = recServices!CivicGroupName
Else
CGName.Visible = False
CGName.Enabled = False
End If

txtDateOn = recServices!DateOn
txtLastName = recServices!LastName
txtFirstName = recServices!FirstName
txtAddress = recServices!Address
cboCity = recServices!City
cboIssues = recServices!Issues
txtZip = recServices!Zip
txtPhone = recServices!Phone
txtTakenBy = recServices!TakenBy
cboAgency = recServices!Agency
txtReferredTo = recServices!ReferredTo
txtNotes = recServices!Note
txtOrganization = recServices!Organization
txtResolution = recServices!Resolution
txtDays = recServices!DaysActive
txtRecord = recServices.RecordCount & " Records"
txtReviewDate = recServices!DateOn + txtDays
sbrStatus.Panels(3) = txtFirstName & " " & txtLastName & " " & cboIssues & " " & CDate(txtDateOn) + CInt(txtDays)
Else
sbrStatus.Panels(3) = "There are no records on file"
End If
End Sub
 
Normally these type of message pops up if there is an Activex control inserted on the form/report and that is not registered (available) in the user's PC.

________________________________________
Zameer Abdulla
Visit Me
A child may not be able to lift too much.
But it can certainly hold a marriage together
 
That is correct and it was exactly that.
Thanks for the confirmation.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top