Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have confused myself, it's not difficult at my age, but I've now got myself to the stage where I am really pissed off !!!

I have small E:Mail program, written in VB.net inside VS2010, that accesses a SQL-Server database. My initial testing has gone fine, I have 3 Tables in my database that I can access, though I have yet to do anything complicated, they are not even linked at the moment, but the program reads them and can send the E:Mails.

I now want to add the nitty-gritty stuff of keeping the databases up to date and allowing my user to specify where he keeps his data, so I have added a new Tab, a new Table & a new TableAdapter but my Form isn't picking up the new TableAdapter ... what am I doing wrong ?!?

Here are some details, firstly, my form ...

http://sdrv.ms/1ePqFoI

My Solution Explorer ...

http://sdrv.ms/1amUBvs

My Server Explorer ...

http://sdrv.ms/1amULmH

My Dataset design with all the TableAdapters ...

http://sdrv.ms/KBJWR1

As you can see, all of my TableAdapters are shown on my Form except for the new one, FileLocations ... why isn't it there and how do I attach / include it ?!?
Posted
Comments
thatraja 21-Jan-14 7:42am    
Just a suggestion, Here this site members don't trust the short urls. Use imgur.com
njammy 21-Jan-14 7:54am    
Did you rebuild your solution after adding it?
Can you access it from code behind? i.e. FileLocationsTableAdapter fTa = new FileLocations TableAdapter
Gary Heath 21-Jan-14 10:09am    
onenomi, it may have been as simple as that !!! I thought I had rebuilt it ... I've saved it, Closed the Project, re-opened it, tried everything, that's why I was getting so frustrated, maybe I hadn't done a Re-Build, because I just did one and lo & behold, there it is !!!

Thank you, I was sure it had to be something simple / stupid, that's me all over :-) !!!

1 solution

Adding as an answer, so that it's clear - onenimo got it. When you change code and it's not there, it's probably not built. When that happens to me, I clean and rebuild, and if that does not work, I change something cosmetic ( like the title bar text ) so I know for sure that what I am looking at, is the latest build.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900