[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

5.8

Altering data in a table - the saga continues (previous question Q.10248835)

Asked by Taygen in Microsoft Access Database

Tags: runnumber

I am still trying get my data to do what it's told (or should I say do what I want it to do, not what it told to do!)

I accepted BrianWren's answer previousley as correct and could not get my database working correctly (i was obviousley doing somthing wrong).  I am still learning VB code.  

So over the Christmas break I have started from scratch to work a solution by myself, for a training exercise.  I believe I may be almost there but am getting caught up with NULL values in the database.

The fields in my database are:

CamperID - Auto Number
Status - String
OnLineDate - Short Date
RunNumber - Integer
Chassis No - Long
Model - String
Series - String
Awning - Boolean (Checkbox)
Factory Pick Up - Boolean (Checkbox)
Order No - Long
Dealer - String
Customer - String
OffLineDate - Short Date

The code I currently have is as follows

--------------
Private Sub Testing_Click()
    'Testing Moving columns up
   
    Dim CamperID As Integer
    Dim Status As String
    Dim OnLineDate As Date
    Dim RunNumber As Long
    Dim ChassisNo As String
    Dim Model As String
    Dim Series As String
    Dim Awning As Boolean
    Dim Pickup As Boolean
    Dim OrderNo As Long
    Dim Dealer As String
    Dim Customer As String
    Dim Offline As Date
   
    Dim db As Database
    Dim recordsource As Recordset
    Dim s As String
    Set db = CurrentDb
   
    CamperID = 205
    ' This CamperID Number is only for testing, the variable will come from an input box on a form.
   
    s = "SELECT * FROM [Camper Schedule] " & _
    " ORDER BY RunNumber"

    Set recordsource = db.OpenRecordset(s)

    recordsource.MoveFirst
   
    Do Until recordsource!CamperID = CamperID
        recordsource.MoveNext
    Loop
   
    If recordsource.EOF = True Then
        recordsource.MoveLast
        recordsource.Delete
    Else
        If recordsource!RunNumber = Null Then
            recordsource.MoveNext
        Else
            recordsource.MoveNext
            If recordsource!OnLineDate <> Null Then OnLineDate = recordsource!OnLineDate
            If recordsource!RunNumber <> Null Then RunNumber = recordsource!RunNumber
            If recordsource![Chassis No] <> Null Then ChassisNo = recordsource![Chassis No]
            If recordsource!Model <> Null Then Model = recordsource!Model
            If recordsource!Series <> Null Then Series = recordsource!Series
            If recordsource!Awning <> Null Then Awning = recordsource!Awning
            If recordsource![Factory Pick Up] <> Null Then Pickup = recordsource![Factory Pick Up]
            If recordsource![Order No] <> Null Then OrderNo = recordsource![Order No]
            If recordsource!Dealer <> Null Then Dealer = recordsource!Dealer
            If recordsource!Customer <> Null Then Customer = recordsource!Customer
            If recordsource!OffLineDate <> Null Then Offline = recordsource!OffLineDate
           
            Debug.Print "assinging Values", OnLineDate; RunNumber; ChassisNo; Model; Series; Awning; Pickup; OrderNo; Dealer; Customer; Offline
           
            recordsource.MovePrevious
            Debug.Print "Original Values", recordsource!OnLineDate; recordsource!RunNumber; recordsource![Chassis No]; recordsource!Model; recordsource!Series; recordsource!Awning; recordsource![Factory Pick Up]; recordsource![Order No]; recordsource!Dealer; recordsource!Customer; recordsource!OffLineDate
           
            With recordsource
                .Edit
                !RunNumber = RunNumber
                ![Chassis No] = ChassisNo
                !Model = Model
                !Series = Series
                !Awning = Awning
                ![Factory Pick Up] = Pickup
                ![Order No] = OrderNo
                !Dealer = Dealer
                !Customer = Customer
                !OffLineDate = Offline
                .Update
            End With
            Debug.Print "New Values", recordsource!OnLineDate; recordsource!RunNumber; recordsource![Chassis No]; recordsource!Model; recordsource!Series; recordsource!Awning; recordsource![Factory Pick Up]; recordsource![Order No]; recordsource!Dealer; recordsource!Customer; recordsource!OffLineDate
            MsgBox "Check"
            recordsource.MoveNext
        End If
    End If
   
   
    MsgBox "end sub"
       
End Sub

-----------------

I would be greatful for any advice.  And if need be I can eMail a copy of the database.


Cheers
SW
[+][-]02/03/00 05:56 AM, ID: 2485826Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/03/00 06:27 AM, ID: 2485947Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/03/00 06:34 AM, ID: 2485971Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/03/00 07:16 AM, ID: 2486146Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/03/00 11:32 AM, ID: 2487198Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/03/00 11:37 AM, ID: 2487212Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/03/00 01:33 PM, ID: 2487638Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/03/00 01:48 PM, ID: 2487694Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/03/00 08:18 PM, ID: 2488499Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/04/00 12:59 AM, ID: 2488965Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/04/00 05:49 AM, ID: 2489616Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/04/00 06:28 AM, ID: 2489771Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/12/00 02:36 AM, ID: 2514039Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/14/00 12:21 AM, ID: 2517946Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/15/00 12:17 PM, ID: 2524396Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/15/00 03:29 PM, ID: 2525042Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/18/00 05:37 PM, ID: 2537183Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/25/00 05:50 AM, ID: 2557984Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/27/00 02:39 PM, ID: 2563188Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/27/00 04:14 PM, ID: 2563329Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/28/00 07:44 PM, ID: 2567408Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/28/00 11:17 PM, ID: 2567806Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/29/00 05:03 AM, ID: 2568614Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/29/00 01:08 PM, ID: 2570485Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/29/00 01:08 PM, ID: 2570486Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/29/00 02:58 PM, ID: 2570779Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/29/00 03:19 PM, ID: 2570830Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/29/00 04:52 PM, ID: 2571032Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/01/00 08:55 AM, ID: 2573338Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/01/00 10:14 AM, ID: 2573633Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/01/00 02:11 PM, ID: 2574457Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/02/00 10:19 AM, ID: 2577470Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Microsoft Access Database
Tags: runnumber
Sign Up Now!
Solution Provided By: nico5038
Participating Experts: 5
Solution Grade: A
 
[+][-]03/02/00 10:39 AM, ID: 2577516Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/02/00 02:27 PM, ID: 2578245Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/02/00 03:29 PM, ID: 2578391Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/19/00 03:16 AM, ID: 2633012Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/19/00 03:51 AM, ID: 2633046Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/20/00 02:50 PM, ID: 2638022Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/20/00 03:18 PM, ID: 2638089Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81