GetDotted Domains

Viewing Thread:
"Microsoft Access or Visual Basic HELP!"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Wed 04/12/02 at 17:53
Regular
Posts: 787
I've got a nice little database working, its a booking system and it all works!

The only problem is that once you press the exit database button it closes it straight away!

I want to create a nice little message box to ask whether you are sure you want to quit, I havn't got a clue howto do this and Access help is a pile of crap!

It's got to be an 'OK' or 'Cancel' box which is '1' or vbOKCancel...

Can someone either tell me how to assign a message box like that to a button or just upload a basic form with one button that does what I want so that I can see how it works...

I'm sure I'll find out somehow someday but I know someone here will be able to help me better and prevent me from ~buggering~ up my database... again...

Thanks!
Wed 11/12/02 at 17:48
Regular
"Chavez, just hush.."
Posts: 11,080
Thanks!

It's so simple once you think about it!
Wed 11/12/02 at 09:18
Regular
"bing bang bong"
Posts: 3,040
If MsgBox("Enter the correct details for the search to work!", vbRetryCancel+vbExclamation, "Retry or Cancel?") = vbRetry Then
Book_Appointment_Click
End If
Wed 11/12/02 at 09:06
Regular
"bing bang bong"
Posts: 3,040
For god sake, it took me less than a minute of trying


Private Sub Cmd_Btn_Off_Click()
If MsgBox("Are you sure your gay?", vbYesNo, "!") = vbYes Then
CloseForm 'Calls the CloseForm function
End If
End Sub

Private Sub CloseForm()
DoCmd.Close
End Sub
Tue 10/12/02 at 21:45
Regular
"Chavez, just hush.."
Posts: 11,080
All I want is to be able to call the sub up again!

The code is below:

If clicked = vbRetry Then
Call Book_Appointment

I don't know how to do that!
Tue 10/12/02 at 21:43
Regular
""
Posts: 303
Tell me exactly what youre trying to achieve and Ill do it tomorrow. Think we're making mountains out of molehills here. It ain't difficult.

Are you around tomorrow during the day? Got an email address? I can be on Messenger during the day.
Tue 10/12/02 at 18:54
Regular
"Chavez, just hush.."
Posts: 11,080
It still doesn't want to work!

Grrrrrr!
Tue 10/12/02 at 11:26
Regular
""
Posts: 303
One way is to directly call the function again i suppose;

if clicked = vbRetry then
Book_Appointment_Click() 'or is it: call Book_Appointment_Click() ?


Where does the stLinkCriteria get assigned values?
Tue 10/12/02 at 10:56
Regular
"bing bang bong"
Posts: 3,040
I'll have a look at it when I get home.
Mon 09/12/02 at 19:57
Regular
"Chavez, just hush.."
Posts: 11,080
Hello??
Mon 09/12/02 at 18:26
Regular
"Chavez, just hush.."
Posts: 11,080
Here we go..

A basic one this time..

How do I call up the sub again if the retry button is clicked?

Look at the line that I have indicated, could someone help me please?

Thanks!

---------

Private Sub Book_Appointment_Click()

On Error GoTo Err_Book_Appointment

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "Book Appointment"
DoCmd.OpenForm stDocName, , , stLinkCriteria

Exit_Book_Appointment:
Exit Sub

Err_Book_Appointment:
MsgBox "Enter the correct details for the search to work!", vbRetryCancel + vbExclamation, "Retry or Cancel?"
'If clicked = vbRetry Then GoTo Book_Appointment

*****ABOVE LINE IS THE ONE THAT NEEDS WORK!*****


Resume Exit_Book_Appointment
End Sub

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Thanks!
Thank you for dealing with this so promptly it's nice having a service provider that offers a good service, rare to find nowadays.
Just a quick note to say thanks for a very good service ... in fact excellent service..
I am very happy with your customer service and speed and quality of my broadband connection .. keep up the good work . and a good new year to all of you at freeola.
Matthew Bradley

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre
Feedback Close Feedback

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.