﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » Error executing Search code</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Fri, 18 Sep 2026 02:08:10 GMT</lastBuildDate><ttl>20</ttl><item><title>Error executing Search code</title><link>http://forum.strataframe.net/FindPost10031.aspx</link><description>Hi all.  I have incorporated search in my maintenance forms using the technique from the turorial 6.  Upon running I get an error:&lt;br&gt;
&lt;br&gt;
 {"Invalid object name 'tlbBarelLength'."}&lt;br&gt;
&lt;br&gt;
Code under my search button: &lt;br&gt;
&lt;br&gt;
  Me.BarrelLgtnBO1.FillByLength(Me.txtSearch.Text)&lt;br&gt;
&lt;br&gt;
My BO code:&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
    Public Sub FillTop100()&lt;br&gt;
        Me.FillDataTable("Select TOP 100 * FROM tblBarelLength")&lt;br&gt;
&lt;br&gt;
    End Sub&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
    Public Sub FillByLength(ByVal BarrelLength As String)&lt;br&gt;
        '-- Estabish Locals&lt;br&gt;
        Dim loCommand As New SqlCommand&lt;br&gt;
&lt;br&gt;
        '-- Build the query&lt;br&gt;
        loCommand.CommandText = "SELECT * FROM tlbBarelLength WHERE Length = @length"&lt;br&gt;
&lt;br&gt;
        '-- Add the parameter&lt;br&gt;
        loCommand.Parameters.Add("@length", SqlDbType.VarChar)&lt;br&gt;
        loCommand.Parameters("@length").Value = BarrelLength&lt;br&gt;
&lt;br&gt;
        '-- Execute the command to fill the business object&lt;br&gt;
        Me.FillDataTable(loCommand)&lt;br&gt;
    End Sub&lt;br&gt;
&lt;br&gt;
Now the if the FillTop100 code works which is calling the same table object why is the FillByLength code inop?&lt;br&gt;
&lt;br&gt;
Lost In Ventura....:pinch:&lt;br&gt;
&lt;br&gt;
Regards,&lt;br&gt;
&lt;br&gt;
Robert&lt;br&gt;
&lt;br&gt;
&lt;br&gt;</description><pubDate>Fri, 06 Jul 2007 17:25:17 GMT</pubDate><dc:creator>Robert Carl Johnson</dc:creator></item><item><title>RE: Error executing Search code</title><link>http://forum.strataframe.net/FindPost10050.aspx</link><description>I'm sure he is... Everyone here has been good to me.. helping me along even on weekends.  When I get up to speed I'll do my best to help others. In the mean time... lol.&lt;br&gt;
&lt;br&gt;
Robert</description><pubDate>Fri, 06 Jul 2007 17:25:17 GMT</pubDate><dc:creator>Robert Carl Johnson</dc:creator></item><item><title>RE: Error executing Search code</title><link>http://forum.strataframe.net/FindPost10048.aspx</link><description>[quote][b]Robert Carl Johnson (07/06/2007)[/b][hr]You can count on it Greg, assuming I know the answer.. lol. :D&lt;br&gt;
&lt;br&gt;
Robert[/quote]&lt;br&gt;
&lt;br&gt;
Greg, is a good man!</description><pubDate>Fri, 06 Jul 2007 17:10:42 GMT</pubDate><dc:creator>Ben Hayat</dc:creator></item><item><title>RE: Error executing Search code</title><link>http://forum.strataframe.net/FindPost10046.aspx</link><description>You can count on it Greg, assuming I know the answer.. lol. :D&lt;br&gt;
&lt;br&gt;
Robert</description><pubDate>Fri, 06 Jul 2007 16:38:30 GMT</pubDate><dc:creator>Robert Carl Johnson</dc:creator></item><item><title>RE: Error executing Search code</title><link>http://forum.strataframe.net/FindPost10045.aspx</link><description>No problem...I've had a few of those kind of days myself.  It's good to have the forum here to help us during those trying times!  Hope you'll do the same for me some day!  :D</description><pubDate>Fri, 06 Jul 2007 16:22:58 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Error executing Search code</title><link>http://forum.strataframe.net/FindPost10034.aspx</link><description>I gotta tell you,  the day started out with dumping coffee on my keyboard and it's been downhill since then.. um thanks Greg for spotting what I would have taken me all day to see.. :blush:&lt;br&gt;
&lt;br&gt;
Regards,&lt;br&gt;
&lt;br&gt;
Robert</description><pubDate>Fri, 06 Jul 2007 12:43:02 GMT</pubDate><dc:creator>Robert Carl Johnson</dc:creator></item><item><title>RE: Error executing Search code</title><link>http://forum.strataframe.net/FindPost10033.aspx</link><description>Table name is misspelled in second fill method (FillByLength)&lt;br&gt;
&lt;br&gt;
[quote]{"Invalid object name 'tlbBarelLength'."}[/quote]&lt;br&gt;
indicates you misspelled the table name.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
[codesnippet]Public Sub FillByLength(ByVal BarrelLength As String)&lt;br&gt;
       ....&lt;br&gt;
        '-- Build the query&lt;br&gt;
        loCommand.CommandText = "SELECT * FROM tlbBarelLength WHERE Length = @length"  &lt;-- should be tbl not tlb&lt;br&gt;
       .....&lt;br&gt;
    End Sub&lt;br&gt;
[/codesnippet]</description><pubDate>Fri, 06 Jul 2007 12:18:10 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item></channel></rss>