Different Button Images On Switchboard

Mar 3, 2005

Is there anyway to set differentbutton images for each section of a switch board.

Say I have a main switch board with "Customers", "Orders" and "Products". I want each one of these buttons to have an image.

However, when you click on "Customers" you go to the customers swicthboard, which then has "add", "delete" and "edit". I would like these three buttons to have images, but different images to those on the main form.

I hope that is clear.

Is it possible to do this, and if so how?

Thanks.

View Replies


ADVERTISEMENT

Back Button On Switchboard

May 15, 2006

is it possible to create a back button on your switchboard so from your main switchboard your subwitchboards or your sub sub switchboards you just click the back button to go the the previous switchboard?

View 13 Replies View Related

Switchboard Question.. With A Button.

Mar 29, 2005

I am trying to make a button that will open a 2nd menu in the switchboard.

Is there a way I can do this?

I know there's a DoCmd.OpenForm "Switchboard" but I am wondering if I can open a 2nd menu this way?

David

View 4 Replies View Related

Switchboard Needs A Password On One Button

Feb 7, 2007

I have created a database where my boss wants a password on the one button to limit access. Is this possible. The button actually opens the Database Window (no one else knows the bypass to open it F11)

Thank you

View 1 Replies View Related

Switchboard Button Name Wont Change

Aug 31, 2005

hello, I have a main switchboard that has a button which opens another switchboard, the button is labelled (has the caption) “Reports” but the trouble is when this other switchboard opens the button on here also has the name “reports” but I want it to be named: “open employee report” and if I change the name of the button on the other switchboard it changes it on both switchboards :mad: , anyone know of a way around this?

View 4 Replies View Related

Adding A Button To The Switchboard Should Be Easy, Right?

Jan 3, 2006

Hi! Everyone on this forum has been very helpful so far, and I could really use some expertise now. I'm trying to update an existing DB designed by someone else (no longer here). I need to add a button to the switchboard for 2006, but I don't understand the code that has been written for the form I am trying to update. I've posted the code below. If anyone can help me decipher it enough to add my button, I would really appreciate it. My new button should be the 9th one. Thanks in advance:

************************************************** *
Option Compare Database
Option Explicit

Private Sub Form_Open(Cancel As Integer)
' Minimize the database window and initialize the form.

' Move to the switchboard page that is marked as the default.
Me.Filter = "[ItemNumber] = 0 AND [Argument] = 'Default' "
Me.FilterOn = True

End Sub

Private Sub Form_Current()
' Update the caption and fill in the list of options.

Me.Caption = Nz(Me![ItemText], "")
FillOptions

End Sub

Private Sub FillOptions()
' Fill in the options for this switchboard page.

' The number of buttons on the form.
Const conNumButtons = 9

Dim dbs As Database
Dim rst As Recordset
Dim strSQL As String
Dim intOption As Integer

' Set the focus to the first button on the form,
' and then hide all of the buttons on the form
' but the first. You can't hide the field with the focus.
Me![Option1].SetFocus
For intOption = 2 To conNumButtons
Me("Option" & intOption).Visible = False
Me("OptionLabel" & intOption).Visible = False
Next intOption

' Open the table of Switchboard Items, and find
' the first item for this Switchboard Page.
Set dbs = CurrentDb()
strSQL = "SELECT * FROM [Switchboard Items]"
strSQL = strSQL & " WHERE [ItemNumber] > 0 AND [SwitchboardID]=" & Me![SwitchboardID]
strSQL = strSQL & " ORDER BY [ItemNumber];"
Set rst = dbs.OpenRecordset(strSQL)

' If there are no options for this Switchboard Page,
' display a message. Otherwise, fill the page with the items.
If (rst.EOF) Then
Me![OptionLabel1].Caption = "There are no items for this switchboard page"
Else
While (Not (rst.EOF))
Me("Option" & rst![ItemNumber]).Visible = True
Me("OptionLabel" & rst![ItemNumber]).Visible = True
Me("OptionLabel" & rst![ItemNumber]).Caption = rst![ItemText]
rst.MoveNext
Wend
End If

' Close the recordset and the database.
rst.Close
dbs.Close

End Sub

Private Function HandleButtonClick(intBtn As Integer)
' This function is called when a button is clicked.
' intBtn indicates which button was clicked.

' Constants for the commands that can be executed.
Const conCmdGotoSwitchboard = 1
Const conCmdOpenFormAdd = 2
Const conCmdOpenFormBrowse = 3
Const conCmdOpenReport = 4
Const conCmdCustomizeSwitchboard = 5
Const conCmdExitApplication = 6
Const conCmdRunMacro = 7
Const conCmdRunCode = 8

' An error that is special cased.
Const conErrDoCmdCancelled = 2501

Dim dbs As Database
Dim rst As Recordset

On Error GoTo HandleButtonClick_Err

' Find the item in the Switchboard Items table
' that corresponds to the button that was clicked.
Set dbs = CurrentDb()
Set rst = dbs.OpenRecordset("Switchboard Items", dbOpenDynaset)
rst.FindFirst "[SwitchboardID]=" & Me![SwitchboardID] & " AND [ItemNumber]=" & intBtn

' If no item matches, report the error and exit the function.
If (rst.NoMatch) Then
MsgBox "There was an error reading the Switchboard Items table."
rst.Close
dbs.Close
Exit Function
End If

Select Case rst![Command]

' Go to another switchboard.
Case conCmdGotoSwitchboard
Me.Filter = "[ItemNumber] = 0 AND [SwitchboardID]=" & rst![Argument]

' Open a form in Add mode.
Case conCmdOpenFormAdd
DoCmd.OpenForm rst![Argument], , , , acAdd

' Open a form.
Case conCmdOpenFormBrowse
DoCmd.OpenForm rst![Argument]

' Open a report.
Case conCmdOpenReport
DoCmd.OpenReport rst![Argument], acPreview

' Customize the Switchboard.
Case conCmdCustomizeSwitchboard
' Handle the case where the Switchboard Manager
' is not installed (e.g. Minimal Install).
On Error Resume Next
Application.Run "WZMAIN80.sbm_Entry"
If (Err <> 0) Then MsgBox "Command not available."
On Error GoTo 0
' Update the form.
Me.Filter = "[ItemNumber] = 0 AND [Argument] = 'Default' "
Me.Caption = Nz(Me![ItemText], "")
FillOptions

' Exit the application.
Case conCmdExitApplication
CloseCurrentDatabase

' Run a macro.
Case conCmdRunMacro
DoCmd.RunMacro rst![Argument]

' Run code.
Case conCmdRunCode
Application.Run rst![Argument]

' Any other command is unrecognized.
Case Else
MsgBox "Unknown option."

End Select

' Close the recordset and the database.
rst.Close
dbs.Close

HandleButtonClick_Exit:
Exit Function

HandleButtonClick_Err:
' If the action was cancelled by the user for
' some reason, don't display an error message.
' Instead, resume on the next line.
If (Err = conErrDoCmdCancelled) Then
Resume Next
Else
MsgBox "There was an error executing the command.", vbCritical
Resume HandleButtonClick_Exit
End If

End Function

************************************************** ******

View 5 Replies View Related

Simple: How To Use This Code With Switchboard Button

Feb 3, 2005

I found this simple password code that I use to open some forms:
Code:Dim x As Stringx = "password"Dim y As Stringy = InputBox("Enter password for form")If x <> y ThenMsgBox ("Invalid password")DoCmd.CancelEventEnd If
I would like to use it in a switchboard button, but the following statement is
OnClick already "=HandleButtonClick(4)". How can I incorporate this statement
with the code?

(I guess I don't really understanding how the auto-switchboard works.)

As always...Thank You

View 4 Replies View Related

Backup Database By Use Of Command Button On Switchboard

Sep 3, 2004

Is it possible to create a command button on an Access switchboard that will automatically backup a database? What code would I need? The command button wizard doesn't handle this task.

View 14 Replies View Related

Linking From Switchboard To Switchboard On Two Or More Databases

Nov 21, 2006

I am working on a database that will be an addition to an existing one on the company server. However, to make the overall layout not so complex and allow room for other additions in the future, I'd like to keep the databases separate. This will also ensure more efficiency, integrity and troubleshooting overall.

I have the original database with the name of "Cell MFG Screen" that contains a switchboard. I am now creating a db to keep track of manufacturing waste (which will also be on the same server when completed). That switchboard is called "Cell Waste Weight". Again, I want to keep these db's separated from one another as well being able to add future dbs. Now, what my plan is to make up a one db that consists of only a switchboard that will be used as the main switchboard to be able to navigate to other dbs that are located on the server.

Does anyone know how this is done?

Thank you in advance for your help,

~Kilch

View 10 Replies View Related

Images

Apr 16, 2008

I have a table that is linked to SQL server
In this table I have a field that has thepath to an image
C:TempImagexxx.pdf
What I want to do is have a dropdown that the user can select a Notice Number and then have its image pop up in the form.

I have a Notice Number field and a Path field.

Do I create a Query to query the two fields.
Create a Drop Down box and assign the query to the drop down box.

But then how do I get the image to popup...and in what and unbound object frame?

Any help would be apprecaited

THanks

View 3 Replies View Related

Images & MS Word

Apr 13, 2007

To queries here:

Database is the MS Contacts Template with minor adjustments.

1. Trying to insert a link to an image using a bound OLE object in my form. Now I've got it top work. However, the link appears normal size in the centre of the object box. Problem is when I resize the oject box so that llink text just fits fine. The text resizes with the box and you need a microscope to read it.

2. I want to be able to cerate merged letter but I cant select Tools>Merge it with MS word fro some reason (i've aslo tried with with DB's we use in work with same problem) but publish with Word is available.:confused:

I am by no means an expert with Access so please, please post replies in lamens terms.

Thanks,

Marc

View 2 Replies View Related

Images In Cells...

Feb 19, 2008

Hello,

I did a cursory search of the forum and didn't find anything (probably more my search than the content). I also think I know the answer to this, but I want to clear it up once and for all.

Is it true that I cannot insert an image into an Access Table in a way that it treats the image like data (e.g., it comes up on reports as entered).

If so, and I suspect it is so, what would be the best way to associate a row with a certain image in Access? Here's what I'm hoping to do: I have a list of projects and all of them have a status. Right now the "status" column includes the text "Green," "Yellow," or "Red." I would rather have this text display as green, yellow, or red color rather than text. Is this possible?

Thank you!! :D

View 4 Replies View Related

Images + Tables

Jan 11, 2006

Hello there

I got a questions and maybe you prof. can help me out

I got a table with all employees in it

Example

John Doil
Mina Lizo
Sholly Nopi

etc.

Its has 250 records.

I also got all the pictues of them
But the pictures have the following name

John_Doil_.jpg
Mina_Lizo_.jpg
Sholly_Nopi_.jpg

Also i still have pictues from ex employees.

I have all the filepaths of the jpg in a table.

Is there a way to link the 2 tables based on first name
Or make a extra cell and in a query take the names for the _ that takes out and put it in that cell.

Sorry for my bad english if you got question plz ask

View 9 Replies View Related

Buttons And Images

Mar 11, 2005

I need help combining both text and images on an Access button. Does anyone know how to do this? Bryant

View 2 Replies View Related

Images Not Showing Up

Mar 23, 2005

Hi there,

I have a "minor" problem which most of you will probably have a laugh about :eek:


I have set up my Table / Form to have an image for each "item".

Now...when I add the image, it does not show up as the thumbnail JPG. It only appears as the image name.

So instead of seeing a picture, I see 1.jopg (example)

Can anyone help me with a correct hint?

Much appreciated

Chris

View 5 Replies View Related

Record Images

Jul 20, 2005

Before you ask, yes I did search, but no it didn't help...

OK, database is storing members, so each member record needs to have a picture of them. I've made a field in the members table for the path of the image. I've followed the example here - http://www.utteraccess.com/candace/candace/picture/picture.zip , but I keep getting the error 'You can't reference a property or method for a control unless the control has the focus.' When I've tried to set the focus to it I get the error '# can't move the focus to the control MemberImage.'

What am I doing wrong?

View 14 Replies View Related

Getting External Images

Jul 13, 2006

I have a DB that has a table called tblproductList. In the table i have a field called Image. I have made this field a Text Field. I have entered product details and have entered ghd.jpg in the Image field. this reflects the image i have stored in the same directory as the DB. I have a form and i want to call the image into the form. How is this done?

Thanks
D

View 5 Replies View Related

Images In A Report?

Mar 31, 2005

Dear All:

I have created a report in access 2000. What I wish to do is insert a signature on this report and as I scroll through the report, the signatures change. The fields on the report are name, major and dean.

The signatures reside on the "c" drive on the computer. This report is based on a query. I wish to link the signatures to a specific field(dean) so as I scroll through the report the signatures changes with the report.

I have searched the forums for a solution, but I am having difficulty.

Any ideas on how to accomplish this?

Many thanks,

Regards,

Dion

View 2 Replies View Related

Images In Access

Jun 9, 2005

Hello.
Could some one tell me which type I should define in access db to have an image there, in the db.

After I want to export the data from acces including the image to a ms sql, In Ms SQL i have the field onf the image defined as Bynary.

PLS. give me some help.

View 1 Replies View Related

Reports And Images

Apr 17, 2008

I have a field in my table that has a path to an image.

I was wondering if there was a way to get the image to show up on a report...

I have all the other fields formated with some text...would be nice to put the image on the bottom of the form.

Thoughts?

Thanks

View 3 Replies View Related

Images In Access, Possible?

Oct 12, 2005

Is it possible to efficiently store images in an Access database without having to install custom COM files and the like on your server?

I know it's possible to store them using OLE objects but I've heard this adds a significant amount of data to the image when storing. Is this correct?

Does anyone know how I could get around this?
I'm interfacing the DB via the web, unfortunately I have to use an access DB for the task and can't tinker with the server.

Many Thanks,
Richard

View 2 Replies View Related

Images Won't Display

Sep 1, 2011

I've embedded images in my table, OLE embedded.When i create a report i can add a bound frame but when i preview the report all i get is the generic image icon (its a jpg), the filename and the words (command line).

View 6 Replies View Related

Strange Problem - Images

Jun 24, 2005

Hello,
I am trying to add a normal JPEG image to an Access 2003 form through the "Image" control.
The problem is that when I browse for images , it does not show any JPEG images, but only BMP and images of other 3-4 formats - The JPEG format doesn't exist there. When I try to add a JPEG through "all-files" it gives me an error message - "does not support this format".
There is not problem viewing JPEG images on WinWord or other programs.

Has anyone heard of such a problem and its solution?

Thank you
Gabi

View 2 Replies View Related

Multiple Images In A Form.

Sep 20, 2005

Could anyone help please.

I am a total novice with MS Access (2002) and coding so I am trying to learn by adapting the Northwind sample.

So far, one thing has completely stumped me and that is controlling images. I understand the benefits/pitfalls of storing images in the database and have concluded that it will suit me better to link my images via a text field.

What I am trying to do is add multiple images to the Northwind Employee Form. I have followed the help file and I can get additional images to display on the form, but I can not get the additional images to change for each record. The MS Access help only covers having a single image per record. I've concluded (right or wrong) that the Event Procedure is where I need to be experimenting, but I've had no luck so far.

Can anyone tell me if I can modify the Event Procedure in the Northwinds Employee sample to cope with multiple images, or is there another way?

Excuse me if any of my terminology is wrong... I really am new to this.

Thanks for any advice.

View 7 Replies View Related

Storing Images In Databases

Jan 12, 2006

i am about to create a simple database for an estate agency..

they would like to have one image per record of the property (from the outside)

and 3 or 4 images per record of the property (interior shots)

how can you store images/multiple images in access for a particular record..im sure it has something to do with the ole object

View 4 Replies View Related

Tying Images To A Database

Jun 5, 2006

How would you tie tiff images to an access database. for example. if I have a tiff image of an invoice, i would want the customer to be able to search for an invoice using information about the image, like invoice #, cutomer #, purchase price, etc.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved