Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Need Help In visual basic!


  • Please log in to reply

#16
dsenette

dsenette

    Je suis Napoléon!

  • Community Leader
  • 26,047 posts
  • MVP
*hides in the corner

i'll try...i'm very basic with...well..basic...i just remember a project in school where i h ad to do something similar
  • 0

Advertisements


#17
Ryan_esx7

Ryan_esx7

    Member

  • Topic Starter
  • Member
  • PipPip
  • 17 posts
Thanks again, i cannot express how much u've helped me

my ICT teacher had no clue, and she was on about creating a new user form identical to that one, so that when the user clicked confirm they would not know that they were changing forms, didn't want to do it that way, and she had no clue how to do it.

How long winded did she want to do it??? Would of taken a while and is kinda silly anyway

Thanks again mate

Ryan
  • 0

#18
dsenette

dsenette

    Je suis Napoléon!

  • Community Leader
  • 26,047 posts
  • MVP
if you wanted to be really special you should build in some validations to where if any of those text boxes are empty that it changes the heading on that form to something like "please make sure all data is entered and correct"
  • 0

#19
Ryan_esx7

Ryan_esx7

    Member

  • Topic Starter
  • Member
  • PipPip
  • 17 posts
that would be wicked!

I can feel that A on my coursework coming on

How would i go about this please??

Thnks
Ryan
  • 0

#20
dsenette

dsenette

    Je suis Napoléon!

  • Community Leader
  • 26,047 posts
  • MVP
it usually involves an if then loop


something like

if textbox1 = "" then label1 = "please enter your surname"
end if

and so on for each box
  • 0

#21
Ryan_esx7

Ryan_esx7

    Member

  • Topic Starter
  • Member
  • PipPip
  • 17 posts
hey

got in the validations, to say that if any text box is empty, change label to show 'please enter in your surname' but, this does not stop it entering all the blank information into my customer ID sheet. how do i stop it so you can't go any further until that information has been entered in???

Thanks

Ryan
  • 0

#22
dsenette

dsenette

    Je suis Napoléon!

  • Community Leader
  • 26,047 posts
  • MVP
i'm trying to rmemeber....hehe i'll get back to you..
  • 0

#23
MaverickSidewinder

MaverickSidewinder

    Member

  • Member
  • PipPipPip
  • 257 posts
Ok...sorry but i didn't have time to read all the new replies (i just read the first page)...

what you want to do is this:

Private Sub FormNewCustomerOrOldCustomer_Load() 'if this doesn't work then try to take off private sub
cmd2ndConfirmbtn.Visible = False
End Sub 'this makes it so that when the form loads the button is not visible

'then add this code to the first confirm button

Private Sub Form1stConfirmButton_Click()
cmd2ndConfirmbtn.Visible = True
End Sub 'this makes the second confirm visible but only if you clicked the first confirm button

p.s. i don't know the name of the buttons or forms so i just made them up describing what they are...:tazz:

Edited by MaverickSidewinder, 09 November 2005 - 03:36 PM.

  • 0

#24
MaverickSidewinder

MaverickSidewinder

    Member

  • Member
  • PipPipPip
  • 257 posts
To answer the validation thing:

Private Sub confirmbtn_Click()
If txtSurname.Text = "" Then 
msgbox "You didn't enter your last name you silly goose!", vbCritical, "ERROR"
Cancel = True
End If 'this displays a message box with what the user did wrong and the "Cancel = True" is to make the OK			  
End Sub 'on the messagebox to make you go back and reenter the surname and not forward :D

that should do it..

OR you could do this (disabling the button if the text boxes are empty)

Private Sub confirmbtn_Click()
If txtSurname.Text = "" Then 
confirmbtn.Enabled = False
Else
confirmbtn.Enabled = True
End If 
End Sub

p.s. tell me if there are errors so i can fix them :tazz:
  • 0

#25
Ryan_esx7

Ryan_esx7

    Member

  • Topic Starter
  • Member
  • PipPip
  • 17 posts
hey guys, thanks for both of your help

thanks to maverick for the response
thanks to dsenette for all the help, awaiting your response!!

Thanks very much u guys, and i will definately come back to you's when i come across more problems

and i know i will, cos i am only about a quarter through my project!

Thanks very much

talk to ya's soon

Ryan
  • 0

Advertisements


#26
dsenette

dsenette

    Je suis Napoléon!

  • Community Leader
  • 26,047 posts
  • MVP
sorry ryan...kinda forgot about you...hehe...take mavericks advice on the validation....that's what i was gonna suggest
  • 0

#27
Ryan_esx7

Ryan_esx7

    Member

  • Topic Starter
  • Member
  • PipPip
  • 17 posts
hey guys

looking for a bit of inspiration!

what cool and complicated stuff could i include on my project?
that sells DVD's??

would be grateful of any ideas

Ryan
  • 0

#28
MaverickSidewinder

MaverickSidewinder

    Member

  • Member
  • PipPipPip
  • 257 posts
Something that always improves programs are GRAPHICS. If you have those even the most simple program looks awesome :tazz:

Other from that, you could put different colors (like dont put the ugly normal grey one :))

Im sure you'll do an awesome job!
  • 0

#29
Ryan_esx7

Ryan_esx7

    Member

  • Topic Starter
  • Member
  • PipPip
  • 17 posts
hey thanks

but its coursework and they are just gonna look behind the mask and see the code and stuff

know any complicated code that i could put in to do something fancy?

thanks
Ryan
  • 0

#30
dsenette

dsenette

    Je suis Napoléon!

  • Community Leader
  • 26,047 posts
  • MVP
www.negia.net/~vbbook go to the it's your turn section..IYT i think it's called....look for a program in one of those zips called Vintage Videos.....it's basically a movie rental retail software....don't copy it...but it's good for hints and ideas..
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP