4 Replies - 223 Views - Last Post: 26 January 2012 - 10:23 AM Rate Topic: -----

Topic Sponsor:

#1 sagar1236  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 26-January 12

Adding Additional Details

Posted 26 January 2012 - 08:30 AM

There are specific fields in the form in which he enters the amount , but what if the customer wants to add additional details means more records if he wants to....so what should i do in such case ?

in this case the HE is the customer
Is This A Good Question/Topic? 0
  • +

Replies To: Adding Additional Details

#2 tlhIn`toq  Icon User is online

  • WillMyCodeWork = !FailedWhenYouTriedIt;
  • member icon

Reputation: 3289
  • View blog
  • Posts: 6,892
  • Joined: 02-June 10

Re: Adding Additional Details

Posted 26 January 2012 - 09:10 AM

Is this a trick question?

Include an "Additional Notes" field.
Was This Post Helpful? 0
  • +
  • -

#3 tlhIn`toq  Icon User is online

  • WillMyCodeWork = !FailedWhenYouTriedIt;
  • member icon

Reputation: 3289
  • View blog
  • Posts: 6,892
  • Joined: 02-June 10

Re: Adding Additional Details

Posted 26 January 2012 - 09:15 AM

If you want to get fancy with it, you could have two arrays.
One holds the title of the 'field' while one holds the data


Titles[0] = "Date of birth"
Titles[1] = "Widget"
Titles[2] = "Gadget"

Data[0] = "July 4th, 1776"
Data[1] = "YogiBear"
Data[2] = "BooBoo"


I only gave it 30 seconds thought for two ideas. Maybe, just maybe, you could try thinking and experimenting a little more before giving up and asking others to do it for you. If you want to be a software engineer it is going to be you JOB to figure out solutions to problems. Puzzle solving *is* the job. If that's not your strong skillset for something as easy as this you may need to reconsider your career choice.

May I suggest reading this article?

I don't want you to write my code, just give me ideas on how to solve my problem.
Was This Post Helpful? 0
  • +
  • -

#4 sagar1236  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 26-January 12

Re: Adding Additional Details

Posted 26 January 2012 - 09:24 AM

see i have a form with a definite field "FRONT GLASS"
and the customer enters amount for that and i have a seperate table for that
but if the customer wants to add additional information with two different fields as "DESCRIPTION" and "AMOUNT" so what should i do in order to reflect the data again when the customer wants to update something...
one solution is the datagrid
but how i can do that in VISUAL BASIC 6 and i m using backend as MS ACCESS 2007
Was This Post Helpful? 0
  • +
  • -

#5 tlhIn`toq  Icon User is online

  • WillMyCodeWork = !FailedWhenYouTriedIt;
  • member icon

Reputation: 3289
  • View blog
  • Posts: 6,892
  • Joined: 02-June 10

Re: Adding Additional Details

Posted 26 January 2012 - 10:23 AM

For starters, update what you're working in. VB6 is considered dead for new applications. There is call for it for existing applications in many businesses, but new applications should be made with modern tools.

Same with using a 5 year old database. Update your skillset to C# or VB.NET and some flavor of SQL or an embedded datasource, which Visual Studio 2010 will handle very easily for you.

We have numerous tutorials on using databases. I think you'll find most of your answers there. For the most part they can be summarized with "Plan first, *then* code*

See FAQ 20 below for database suggestions.


TOP most asked:
What does this error message mean?
FAQ 2: How do I debug
FAQ 3: How do I make Form1 talk to Form2



FAQ (Frequently Asked Questions - Updated Jan 2012

Spoiler

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1