15,917,645 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by The-guy-on-the-couch (Top 4 by date)
The-guy-on-the-couch
10-Jul-19 5:26am
View
FranzBe thank you for your assistance, I finally got around to trying the above method, however when I submit the data, VS returns an "Exception unhandled" System.ArgumentNullException: 'Value cannot be null.
Parameter name: key' at the line
If tableDictionary.TryGetValue(ComboBox2.SelectedValue, theTableName) Then
Unfortunatley I'm uncertain as to what value this could be, please could you advise?
The-guy-on-the-couch
8-Jul-19 9:19am
View
Cheers, I will give it a try. Hopefully I will get this thing working. I really don't know how developers can do this stuff all day. I suppose it helps if you know exactly what you're doing. Thanks again, I'll let you know the outcome.
The-guy-on-the-couch
8-Jul-19 8:38am
View
Thanks for offering your assistance, I tried completing the If Else statement and it producded the same dialog "command text not set". As for the solultion below, I tried the "switch" method however that produces a BC32017 error - Comma, `)`, or a valid expression continuation expected. Removing the $"\"{ComboBox2.SelectedText}\ from the argument clears the error, but I then get an exception unhandled event when I submit the data.
The-guy-on-the-couch
8-Jul-19 6:23am
View
Using access 2003. Sorry about that, I copied the text and forgot to paste the rest. I get no errors in VS, however when I try to submit, I get a dialog that says "command text not set for the command object".