0

I'm sure this must be an easy fix, but I haven't been able to see my error. This code worked previously. I'm currently using VS 2019. I'm receiving an error that my tableadapter is not defined.

Dim mbtAdapter As New DataSet1TableAdapters.amongthehiddenTableAdapter
Dim mbtDataTable As DataSet1.amongthehiddenDataTable = Nothing
mbtDataTable = mbtAdapter.GetDataByQuestion(question)

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: BC30002: Type 'DataSet1TableAdapters.amongthehiddenTableAdapter' is not defined.

Any suggestions greatly appreciated!

dataset1.xsd image

tableadapter image

--- update 7/31/20 --- Expanded dataset

Dataset properties

Hover - namespace message

Dionna
  • 1
  • 1

1 Answers1

0

Look for the presence of this in your Solution Explorer:

enter image description here

Single click it and check your properties window looks like this:

enter image description here

Double click it and look for something like this:

enter image description here

If you got to here, let me know and I'll suggest some more stuff

Caius Jard
  • 72,509
  • 5
  • 49
  • 80
  • Thanks for replying! I've added screenshots to my summary of the problem above. Everything looks okay to me. – Dionna Jul 31 '20 at 01:45
  • Please also show a screenshot of the properties window? Your DataSet doesn't look exactly like mine in that it doesn't have any child nodes on the solution explorer - can you click "show all files" and make another screenshot? Also if you click the line with the error does a appear in the line numbers? Does clicking it offer to import a namespace? – Caius Jard Jul 31 '20 at 05:20
  • I added screenshots of the expanded dataset and the properties window. There is no lightbulb when I click the line. There is a message when I hover on the line. I've added the screenshot above as well. Thanks again for taking time to help! – Dionna Jul 31 '20 at 14:50
  • I do have a work-around, so there is no rush on this. I would like to figure out what I have wrong in my code though. – Dionna Jul 31 '20 at 15:02