• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 123
  • Last Modified:

Using controls as params in a DataGridView

Using VB 2005

In a DataGridView, I want to use a control, a textbox, as a parameter in the sql query....

Can I do this? Ive done it in Visual Web Developer 2005 but can't do it in normal VB2005

If so how? And if not, how else?!

0
bdb12
Asked:
bdb12
1 Solution
 
Daniel WilsonCommented:
You could use its .Text property as a parameter in the query ... but not the control itself.  If you explain further what you're trying to do, perhaps I or someone else can offer more help.
0
 
bdb12Author Commented:
Hi thats what Im after, but it still doesnt work

I use the following query

SELECT     *
FROM         Timesheet
WHERE     (UserID = btnHiddenID.[Text])

At run time it throws up an error

'No value given for one or more parameters'

Any clues?

0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now