Consulting

Results 1 to 5 of 5

Thread: Debug Help with a Delete button

  1. #1
    VBAX Regular
    Joined
    May 2008
    Posts
    10
    Location

    Debug Help with a Delete button

    Ok I have almost everything working just how I want it now. Except for a slight error. When you select the view all button it shows a record called title and when you select this record it displays all the values in the dvd or video sheet on row 1 which is the column titles.

    How can I stop the records from showing this row ?

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    I don't see one called Title.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular
    Joined
    May 2008
    Posts
    10
    Location
    OK. I just downloaded the file I linked and I do not see the one i was talking about either.

    When the database is completely empty of all entries and you use the view all button it shows an entry called "title".
    This entry is actually all of the column headers from the "dvd" and "video" worksheets.

    Is there a way to stop this from happening?

  4. #4
    VBAX Master
    Joined
    Jul 2006
    Location
    Belgium
    Posts
    1,286
    Location
    [VBA]Private Sub cmbViewAll_Click()
    If optDVD = True Then
    'Count the no of row in dvd sheet
    If Worksheets("DVD").UsedRange.Rows.Count = 1 Then
    MsgBox "No DVD movies found !", vbInformation
    Exit Sub
    End If
    ViewAllDVD
    Else
    'Do the same for the video sheet
    ViewAllVideo
    End If
    End Sub[/VBA]
    When filling the list with your DVD movies, you start the range at A3 ? Why ?

    Charlize

  5. #5
    VBAX Regular
    Joined
    May 2008
    Posts
    10
    Location
    I do ??

    Never noticed.
    It's not actually my creation ... It was given to me by somebody else.
    I have just made some adjustments to the user forms. I'm not very good with code.
    Thanks for the code to stop it showing the headers.

    I have just changed it to start at A2 instead.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •