Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9155969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:41:19+00:00 2026-06-17T12:41:19+00:00

I hard-coded a data report’s DataMember and Datafields (I’m not using a DataEnviroment, and

  • 0

I hard-coded a data report’s DataMember and Datafields (I’m not using a DataEnviroment, and don’t know how either. I’d rather code it personally) but the more I check the code, I can’t get to solve this thing.

The error message I’m getting is:

Error ‘8526’ Can’t find DataField ‘Omisions.Date’

in this part of the code:

rpt.Refresh

Just before I do a rpt.Show at the end of the code. rpt is my current datareport.
Here’s the relevant code:

  sql = "Shape {exec Usp_HoraExtra_Rut 1} As Normal " _
  & "Append ({exec Usp_HoraExtra_Rut 2} As Omisions " _
  & "Relate Nit To Nit)"
  rptrs.Open sql, db, adOpenStatic, adLockReadOnly

I’m using two stored procedures instead because of the large queries.

Then I add the DataMember:

.Sections("Section1").Controls.Item("t_fecha").DataMember = "Omisions"

and then the DataFields:

.Sections("Section1").Controls.Item("t_fecha").DataField = "date"

and then:

rpt.Refresh
rpt.Show

If anyone can give me a hand, it’d be greatly apreciated.

Edit: typo, cleaned up the code.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T12:41:20+00:00Added an answer on June 17, 2026 at 12:41 pm

    For anyone who might read this…
    I solved this problem by switching from stored procs to views. For some reason SHAPE doesn’t work with sotred procs and I refuse to code a big giant SQL query. I just created a view on my database and query’d it.

    Also, the connnection string needs changing.
    All in all, hard nut.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have hard-coded data into a .jsp file. What I want to do is
I have currently hard-coded in some data for a demo of a project. The
I have a very hard-coded XML reader below: using System; using System.Collections.Generic; using System.Linq;
I've been attempting to pull hard-coded configuration data from a Tomcat web-app which I'm
I have the following hard coded object: data.Add(New Object() {Date, Minutes}) How do I
We have some views and stored procedures which have some data hard-coded in their
My current project has a .js file with hard coded data in it. So
Technology: Junit latest version Application is business oriented Some people use hard coded data
I need to display data that will be hybrid hard-coded strings and data from
Okay the question title may not have made sense... mostly because I don't know

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.