Custom Button

Jan 16, 2006

I'm just creating my first db. When I'm on a form looking at a previous record (in this case a transaction), I need to be able to make a minor change to that record (such as the date for a repeat transaction), and then save the record as a whole new record. The button commands I found in the wizards only let me save over the current recond after an edit. Anyone know the easiest way to creaet a command button that does this? Thanks for any insights.

View Replies


ADVERTISEMENT

Add A Button To A Custom Menu

May 7, 2007

I can't believe I haven't come across this problem before, but I want to add a button to a custom menu I've created. When clicked, this button will run some code I've written.

It may be that I'm losing it (no comments, please :D ) but I can't work out how to add a button that will run code of my choosing, as opposed to just opening a report, opening a form, etc.

Any suggestions?

View 7 Replies View Related

Help With Custom Command Button

Aug 16, 2005

I want to create a custom command button that when clicked hides elements (such as a box, a label, etc) on a specific form (the switchboard) and shows another element (a sub form)
I guessing I would create a module check if the active form is the form called switchboard then using the .Visible properties of each element I want to hide set it to false, and the opposite for the sub form.

Questions I have
1- how do I check if the active form is the form called switchboard - and if not how can I switch focus to the form called switchboard
2- working with modules can i simply call each element like the following Me.CategorySubcategory.Visible = False?
3- now how do i have the code in the module execute when the person clicks the custom command button (i guess it has to do with the on action event in the property for the custom command button but not sure what)


thanks for any help you might be able to offer

View 2 Replies View Related

General :: Put A Custom Button On QAT

Mar 19, 2015

I would like to create a command button that saves a report as a PDF. Currently I am using the built in "PDF or XPS" button but it always opens Adobe reader at the end and also a dialog with the option to save export steps. I want nothing other than a simple save dialog like I can do with a VBA command, but is it even possible to add a custom command to the quick access toolbar?

I know you can add custom commands to the ribbon but the user of this database keeps the ribbon minimized due to it eating up too much of his screen space. The QAT is always visible.

View 3 Replies View Related

Custom Button Image Transparency Problem

Dec 5, 2006

Hello,

I made some custom icons for use with command buttons, and I made them ICO
files with transparency.
However, after I assigned them to my buttons, there's a light grey
background colour - which doesn't look all that great.

Is there a way to import images with their transparency intact? There must
be, since Access' built-in buttons are transparent.
Do I need to use a different image format? Or are there other tweaks to make
this work?

Thank you.

View 8 Replies View Related

Modules & VBA :: Delete A Record With Custom CMD Button

Jul 12, 2015

I am building a db for reservations for my limo company. I want to have a cmd button that verifies the user to make sure she wants to delete a run. This is what I have so far:

Private Sub cmdDeleteRun_Click()
Dim Response
Response = msgbox("Are you sure you want to delete this run?", vbYesNoCancel + vbCritical, "Really delete run?")
If Response = vbYes Then

End Sub

I don't know what I am missing for the cmd to actually delete it.

View 3 Replies View Related

Forms :: Impossible To Add Custom Icon To Button

May 23, 2015

I got an image bitmap that I want to use to customize my button. I got following error pop up."Image Generator" - "search key not found in any record".I'm using access 2013

View 1 Replies View Related

Custom Save Button On Form Preventing Subform

Jun 21, 2005

I have a main form and a sub form. Tbhidden and tbpropersave are the text boxes that govern the update procedure. The main form has two text box that i use to prevent the user from modifying the information on the main form without clicking my custom save button. the problem is that the subform should be completed after the information on the main form has been filled in. The Update code i have refuses to allow me to complete the subform without first clicking the save button on the main form. Here is the code. I wana be able to fill in info in the main form, then the sub form then click save. The sub form is a table which relates to the main form table Many to One.

Private Sub Form_BeforeUpdate(Cancel As Integer)
On Error GoTo Err_Form_BeforeUpdate

Me.tbhidden.SetFocus

If Me.tbPropersave.Value = "No" Then
Beep
MsgBox "Please Save This Record!" & vbCrLf & vbLf & "You can not advance to another record until you either 'Save' the changes made to this record or 'Undo' your changes.", vbExclamation, "Save Required"
DoCmd.CancelEvent
Exit Sub
End If

Exit_Form_BeforeUpdate:
Exit Sub

Err_Form_BeforeUpdate:
If Err = 3020 Then 'Update or CancelUpdate without AddNew or Edit
Exit Sub
Else
MsgBox Err.Number, Err.Description
Resume Exit_Form_BeforeUpdate
End If



Please HELP


End Sub

View 1 Replies View Related

Forms :: Unable To Navigate Between Records - Custom Save Button Not Saving

Jul 22, 2013

I've been working on a database for work for the last few weeks and this forum has been a Godsend many times over, but now I have a problem that I can't find any reference to.

Using Access 2003, I have a form that uses 3 cascading combo boxes in the header to find a unique record, and a command button that brings up the rest of the record into unbound fields in the body of the form.

It works fine for finding records, but whenever I enter/change data on it, the record doesn't save. The navigation buttons at the bottom don't work - the Next/Previous record buttons are disabled, and the First/Last Record buttons do nothing.

Navigation buttons are enabled/activated in the properties.

I tried getting around this by creating a Save Record command button - first using the wizard, then using VBA code DoCmd.RunCommand acSaveRecord as advised by [missinglinq;696351], but this still doesn't save the changes.

View 4 Replies View Related

Custom "Go To Previous Record" Button Problem?

May 24, 2005

Hi gang,

Just spent most of today and all evening trying to get this to work and access keeps giving me a Run-time error '2465':
Microsoft Access can't find the field 'frmPlant_Sub1' referred to in your expression.

I am trying to write the code for Custom Navigation Buttons like - Next, Prev, First, New & so on. To keep it simple for this post I am referring to the "Go to previous" record action.

I have a main form [frmPlant_Main] that is not bound to anything, it just acts as a holder for the sub-form and contains a couple of labels like the database name and so on.

On the main form is a sub-form [frmPlant_Sub1] that is bound to the table that contains the actual data.

On the main form I have a command button called [cmdGoToPrevious]. On its "on click" event I have tried various code but none of it worked. I have searched all over the net but with no luck. I keep getting the same run-time error.

Below is the code that I am currently using and any suggestions would be great.

Thank you in advance,

Kenny

-----------------------Code Begins---------------------
Private Sub cmdGoToPrevious_Click()
If Me!frmPlant_Sub1.Form.CurrentRecord > 1 Then
Me!frmPlant_Sub1.SetFocus
DoCmd.RunCommand acCmdRecordsGoToPrevious
End If
End Sub
-----------------------Code Ends-----------------------

View 3 Replies View Related

Creating A Custom "What's This?" Button In Forms

Aug 19, 2004

Is there a way to use a command button to perform the exact same function as the "What's This" (?) button on the title bar? Is there code I can give it "On Click" that will make it do the same as as the What's This button?

View 2 Replies View Related

Forms :: Command Button To Unlock And Lock Fields / Edit Button?

Feb 19, 2014

I have created a web-database (? - There are globes over all the forms and tables icons) based on the Issues & Tasks template. This means that most of the data is entered and seen on the "Main" form, which has two tabs - Open Issues and Closed Issues. I have created a form that allows people at my work to input the necessary data and save it, so that it will show up on one of the two tabs. However, once a record has been created, I want to be initially locked if the ID/PK is clicked, so that data can't be changed or entered inadvertently.

SO, I changed the code so that when the ID/PK for a record is clicked, it brings up a different form, but one that looks exactly like the one that is brought up when entering a new form, but I locked all of the fields so that the information cannot be changed. It seems from what I have read that I can create a button on this form so that when clicked, it unlocks the fields on the form so that they can be changed, and then when clicked again it will lock the fields again. Is this true? If so, how can I do it? Or is there something similar I can do? I have seen codes that I could copy and paste, but I cannot figure out the place to copy and paste codes in Access 2010.

I have changed the Form properties so that Data Entry and all the "Allows" are set to No...

View 9 Replies View Related

Custom Toolbar

Mar 29, 2006

HI all, I have recently created my own custom toolbar for my database which works fine on my computer, but when the database is transfered to another computer via a memory stick (needs to be done as it is going to be used on remote laptops away from the main network), the custom toolbar does not carry over. Instead of the custom toolbar being shown, the normal, main toolbars are reset to the default ones shown.

Is there a way of stopping the toolbars reseting when transfering the database so that my custom toolbar is the default toolbar?

Thanks for the help!

View 1 Replies View Related

Custom Toolbar

Jul 13, 2006

I have a custom toolbar in my application. However, it isn't visible at the top of the application window and when I try to make it so - via View - Toolbars - it doesn't appear on the list of available bars.

I had assumed that I had somehow deleted it, but I know it's still present somewhere, as when I try to recreate it, I get a message saying so.

How can I get the toolbar to be displayed? :confused:

View 8 Replies View Related

How Do I Create A Custom Msg Box

Jan 1, 2007

I have a database for call outs, i had a problem with double booking, but cured that, my problem now is every time my work mates try to book me in that go into the debug box (accidently) all i need is a ok button only msgbox to say the time is already booked. can anyone plaease help.

here is my db if any one want to have a look

View 2 Replies View Related

Custom Help File

Feb 13, 2007

Hi all. I have tried searches on here and via google but can't find a difinitive answer to my question. What i would like to do is create a custom help file that will run when the user requests it. I know there is a property option to set a custom help file within a form but i am unsure of the correct process to do this to get it working.

Could someone please help me understand what needs to be done.

Thanks in advance.

View 2 Replies View Related

Custom Toolbar

Mar 6, 2007

Hi folks:

when I create a custom toolbar on my db, would that custom toolbar be carried to other copies of my db? I'm hiding all toolbars using code and I need to display only one.

thanks

View 1 Replies View Related

Custom Menus

Oct 25, 2007

Since the introduction of 2003 when you create a custom menu you always get the 'Type in a question for help' tag and the min max close buttons. Is there any way of removing them or disabling them?
:confused:

View 1 Replies View Related

Custom Autonumbers.

Jun 17, 2006

I would like to create a custom autonumber to use as my primary key in one of my tables in my database.

I would like my records to be displayed as such C000001 , C000002 and so forth. Does anyone know how todo this?



Thanks in advance.

View 1 Replies View Related

Custom Relationship - Need Help!

Jul 31, 2006

Hello, I am trying to set up a relatively simple relationship between numeric fields in two (already related) tables. The problem is Access doesn't really support this type of relationship... or in fact, doesn't have an interface for coding your own custom relationships (if it had one, this would be ridiculously easy).

But it doesn't. So I have to turn to you.

To explain my problem better, I'll use a visual aid.

http://img269.imageshack.us/img269/9123/db1zx2.jpg

My two tables are as follows, the master is called [Raw Materials] and details is called [Raw Materials Details] (the aptly named).

I guess I should rename the [Raw Materials].[Stock] to something else (as this isn't REALLY data redundancy). But anyway, what I want to do is have the [Raw Materials].[Stock] automatically equal to Sum(Stock) FROM [Raw Materials Details].[Stock]. To rephrase, I want the Total Stock field to be automatically equal the sum of corresponding stocks.

Either way, I have no idea how to go about doing this. Can anyone point me in the right direction?

View 14 Replies View Related

Help Again With Custom Query

Aug 27, 2005

Hi all,

I cant make work, a query with creteria filled within controls of a form. I will be more specific to make u understand what i want to ask.
There are 2 text fields and 2 combo boxes. All of them call a report (by pressing a button) from the main table.
in the "totalquery" query i call each control this way:

select tblPeople.name,tblPeople.tel,tblPeople.age,tblPeop le.Car from tblPeople where tblPeople.Name=[forms]![frmMyform]![combo1] OR tblPeople.tel=[forms]![frmMyform]![text1field] OR tblPeople.age=[forms]![frmMyform]![text2field] OR tblPeople.Car=[forms]![frmMyform]![combo2]
GROUP BY tblPeople.name,tblPeople.tel,tblPeople.age,tblPeop le.Car;

I want to make it display (the right) results if one of the text filed/combo is filled or with data, or all together or in combinations.
i use the OR statement,but it doesnt work if I fill in two fields/combos together and etc.
Anyone? :rolleyes:

View 4 Replies View Related

Custom Queries

Sep 12, 2007

Hello all!

Basically what I am wanting to know is how difficult is it going to be to do the following.

I want to have 8 searchable fields, first name, last name, MO, Job code, etc etc. I want to be able to type somthing in any one of these fields and then when i hit a submit button I want to to return to me all the data that corresponds to what I am looking for. I know I could just create a simple query from the query wizard but i want everything in the program to look uniform as to not throw every one off. How difficult would this be and how should I go about doing it. If you need more information let me know.

View 2 Replies View Related

Custom Order By?

Oct 17, 2007

Wondering if it is possible to order by particular values??

That is I have a column (varchar) named "Status" with values such as; Entered, Active, Completed etc (I didnt design the DB).

What I need is to order by Entered, then by Active then Completed etc.. Is this possible??

Ive got this code for SQL; but it doesnt work in Access (03)..


ORDER BY

CASE Status

WHEN 'Entered' THEN 0

WHEN 'Active' THEN 1

WHEN 'Completed' THEN 2

ELSE 3 END, Status

View 2 Replies View Related

Custom Tab Order

Oct 27, 2005

I have a form with tab pages which I can not change the tab order.
When I bring up the Tab Order box no fields are displayed only a Custom Tab Order! Never seen this before.
Question is how to get rid of this and be able to change tab orders.

Thanks

View 2 Replies View Related

Custom Yes/no Textbox

Dec 22, 2006

I trying to setup a custom yes/no.

In the table I set the yes/no format "Made";"Recieved" » lookup 'text box'

I made the form and in the textbox and did value list with made and recieved. but it's giving me the could be text when number should be used and vise versa thing.

View 2 Replies View Related

Custom Toolbars

Mar 8, 2005

i must be overlooking something obvious, but....

how in the world do you put in the little gray separators in a custom toolbar? you know, to keep similar buttons in logical 'groups' on the toolbar...

View 1 Replies View Related







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