Question Two questions

dreni

New member
Local time
Today, 08:23
Joined
Apr 20, 2010
Messages
5
1. I have a form with many elements, such as fields, calendar etc etc.
The problem I have is that when I'm adding a new page on the form some buttons are visible on the new page, but i want a blank new page on the form.
This happens to some of the buttons, not all of them. (They are visible on both pages on that form)
What should I do to make my buttons visible on the first page and not the second one?

2. I would like to have a button on my form where it gets information from a field and adds it as a suffix on a link. For example:
Field A: 123456789
Button A has this link: http://www.website.com/?what=
When pressing Button A it should get the suffix from Field A and add it to the link on Button A and open the website on Internet Explorer or Firefox like so: http://www.website.com/?what=123456789

Thanks
 
1. I have a form with many elements, such as fields, calendar etc etc.
The problem I have is that when I'm adding a new page on the form some buttons are visible on the new page, but i want a blank new page on the form.
This happens to some of the buttons, not all of them. (They are visible on both pages on that form)
What should I do to make my buttons visible on the first page and not the second one?

.........

I'm not sure what you mean when you talk about adding a new page to a form. Do you mean when you navigate to a new record? In which case you can set a Button's (Control's) Visible property to False to hide it.
Code:
Me.YourButtonName.Visible = False

.........

2. I would like to have a button on my form where it gets information from a field and adds it as a suffix on a link. For example:
Field A: 123456789
Button A has this link: http://www.website.com/?what=
When pressing Button A it should get the suffix from Field A and add it to the link on Button A and open the website on Internet Explorer or Firefox like so: http://www.website.com/?what=123456789

Thanks
You can use FollowHyperlink to open a link in the default browser. The code in your On Click event will look something like;
Code:
Application.FollowHyperlink "http://www.website.com/?what=" & Me.FieldA

Use the & operator to Concatenate the know portion of your web address with the portion stored in the field.
 
do you mean a page on a "tabbed" control

if so, the controls are probably on the form, not on the first page, and therefore they show on all pages (if the tab has a transparent background).

you need to cut them off the form - select the tab you want, and paste them back. note that you will lose any event handlers by doing this (on clicks and such like) - and you will have to reset them. (the code will still be there in the module - you just lose the event handlers)
 
By pages I mean this:
You see on the first page (Page01) there are alot of elements:
http://i40.tinypic.com/rbi2op.jpg
And on the second page (Page02) some of those elements from page 1 are visible on page 2:
For example the the calendar button, address, create new customer/delete customer buttons with labels, etc.
http://i40.tinypic.com/rbi2op.jpg

What makes those elements appear on the second page, they should only be visible on the first page, I want the second page to be empty.

And thanks about the FollowHyperlink code, it's working great. :)
 
OK it's a tabbed page, makes sense now. gemma-the-husky seems to have guessed what I didn't, check his response.
 
Yep, that was the problem, and by doing as gemma wrote, it solved my problem.
Thanks alot guys, great forum with great support.
 
One last thing, I have a big textbox (as shown on my screenshot above) that has alot of text in it.
Is there any way to enable the scrollwheel so I can scroll through the text?
 
There is a scroll bar property for the control set it to vertical.
 
The scrollbar is already there, but I can't use my mouse schrollwheel to scroll down on the textbox.
 
Last edited:

Users who are viewing this thread

Back
Top Bottom