473,408 Members | 1,761 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

What is happening with the code behind the button....

Attached a small database to look at.

When the database is opened, form “frmSingleDate” pops open.

Click “Do Something”, I get a dialog box asking “Would you like to change the date before proceeding?”

Click on “Yes”, form “frmSelectPayPeriod” opens.

Click on “Find Pay Day” and a message box opens “The command or action “find” isn’t available now. Why is this happening???

Where as when I open form “frmSelectPayPeriod” and click Click on “Find Pay Day” normally it is working.

thanks in advance

Raghu Prabhu
Attached Files
File Type: zip TestingPaycables.zip (45.0 KB, 64 views)
Nov 1 '13 #1
2 1265
ADezii
8,834 Expert 8TB
It is because the Form is being Opened in Dialog Mode. In the Click() Event of the Do Something Command Button, change
Expand|Select|Wrap|Line Numbers
  1. DoCmd.OpenForm "frmSelectPayPeriod", acNormal, , , acFormEdit, acDialog
to
Expand|Select|Wrap|Line Numbers
  1. DoCmd.OpenForm "frmSelectPayPeriod", acNormal, , , acFormEdit, acWindowNormal
Nov 1 '13 #2
@ADezii
Thank you very much for your response.

Regards
Nov 1 '13 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: | last post by:
Hi guys! I am a beginner with aspx (i have some background with .asp). And i am trying tu use a 'code-behind' page in order to execute all transactions in that page and leave as clean as possible...
4
by: Nevyn Twyll | last post by:
I have a web form, with c# code-behind. I have a listbox on the form, bound to a dataset. I want to have 2 buttons/hyperlinks/etc. beside the listbox. When they are clicked, I want to launch a...
5
by: Richard Dixson | last post by:
I created a new C# web application. Basically all I am trying to do is create a table that consists of a few rows with two columns in each. And then to set those columns to text values from my...
2
by: Ric | last post by:
im new to asp.net. from what i understand, you have the aspx file (presentation), user-control(ascx file), code-behind(vb file) and components(compiled vb and dll files). the aspx file contains a...
3
by: | last post by:
Hi I am using vb.net code behind. In my code I have a button click event on my main web form. Private Sub btNew_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
17
by: tshad | last post by:
Many (if not most) have said that code-behind is best if working in teams - which does seem logical. How do you deal with the flow of the work? I have someone who is good at designing, but...
2
by: Mahesh P | last post by:
Hi all; I am using code behind class with each aspx page; can i use multiple code behind class with a single aspx page. dont consider user controls.
1
by: pbishop | last post by:
Hi, I'm fairly new to ASP.Net. I have Visual Web Developer 2005 Express. Except for the default.aspx, whenever I create a new Web form, no code behind (aspx.vb) page is created. The same thing...
3
by: Bart Van Hemelen | last post by:
I'm working on a project where the user of a site will receive custom content, depending on a set of parameters. The content will all be contained in UserControls (.ascx), that will be used as...
2
by: rn5a | last post by:
Assume that a user control (MyUC.ascx) encapsulates 2 TextBoxes with the IDs 'txt1' & 'txt2' respectively. To use this user control in an ASPX page, the following Register directive will be...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.