473,395 Members | 1,762 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,395 software developers and data experts.

dialog box

140 100+
hi all,

help me
i ve person name repeated so many times in my table. while loading the form i want a dialog box has to open and i ve to enter a name on that. then it has to display all details abt her work. is this possible.

suggestion and help with codes yeah
Nov 13 '06 #1
5 1622
MMcCarthy
14,534 Expert Mod 8TB
hi all,

help me
i ve person name repeated so many times in my table. while loading the form i want a dialog box has to open and i ve to enter a name on that. then it has to display all details abt her work. is this possible.

suggestion and help with codes yeah
All you need is a form based on the table showing all records.

Another form with a combobox (cboUsers) listing all users with a unique id (PK of the table ideally) field hidden.

Then behind a command button (cmdFindUser) put the following code:

Expand|Select|Wrap|Line Numbers
  1.  
  2. Private Sub cmdFindUser()
  3.  
  4.   DoCmd.OpenForm "First Form Name", , , "[UserID]=" & Me.cboUsers
  5.  
  6. End Sub
  7.  
  8.  
Nov 13 '06 #2
indhu
140 100+
All you need is a form based on the table showing all records.

Another form with a combobox (cboUsers) listing all users with a unique id (PK of the table ideally) field hidden.

Then behind a command button (cmdFindUser) put the following code:

Expand|Select|Wrap|Line Numbers
  1.  
  2. Private Sub cmdFindUser()
  3.  
  4.   DoCmd.OpenForm "First Form Name", , , "[UserID]=" & Me.cboUsers
  5.  
  6. End Sub
  7.  
  8.  

this master form showing all the details. there i placed the command-

cmdfinduser.

and create seperate form with combobox. then i placed the code behind the

command-cmdfinduser


Private Sub cmdFindUser_click()

DoCmd.OpenForm "searchuser", , , "[Person]=" & Me.cbouser

End Sub

compile error is coming. method or datamember not found

pls help and sort out the problem yeah
Nov 14 '06 #3
indhu
140 100+
this master form showing all the details. there i placed the command-

cmdfinduser.

and create seperate form with combobox. then i placed the code behind the

command-cmdfinduser


Private Sub cmdFindUser_click()

DoCmd.OpenForm "searchuser", , , "[Person]=" & Me.cbouser

End Sub

compile error is coming. method or datamember not found

pls help and sort out the problem yeah

its working now..

i ve placed the cmd in searchuser form. and i ve given ID.

thank u
Nov 14 '06 #4
indhu
140 100+
its working now..

i ve placed the cmd in searchuser form. and i ve given ID.

thank u
hi its working but only detail is coming at a time
since i ve repeated names in my table. when i enter name as"pinky" in the combo it should display all the work he did. how to do that.

help me
Nov 14 '06 #5
MMcCarthy
14,534 Expert Mod 8TB
hi its working but only detail is coming at a time
since i ve repeated names in my table. when i enter name as"pinky" in the combo it should display all the work he did. how to do that.

help me
You've repeated the names but only one UserID

If you want to go back to using the name you just need to surround it with single quotes designating text as follows:

DoCmd.OpenForm "searchuser", , , "[Person]='" & Me.cbouser & "'"
Nov 14 '06 #6

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

Similar topics

1
by: Prosonman | last post by:
Hi, What is the best way to transfer variables to and from a dialog box? My project consists of a form with a number of controls, lets say three Labels, when a label is clicked it opens a dialog...
23
by: George | last post by:
Is there a way to customize the open file common dialog? I am trying to modify the button text so I can create a delete file common dialog. I need the same functionality of the open file common...
1
by: Carmine | last post by:
I'm currently writing a small program that churns on a repetitive task while displaying a progress & cancel modeless dialog. I've been having problems due to threadlocking, and I was wondering if...
4
by: Alexander | last post by:
Hi, I have written a program that takes on some operations much more time than I expected. As I have seen users clicking wildly on the screen to make something happen, I want to follow the...
6
by: bryanhobson | last post by:
I'm fairly new to c#, and I am just trying to work out how a 'properties' dialog works. Currently in my code, I have an object represented by the class 'Dog'. The dog object has several...
4
by: ronenk | last post by:
I have this code to load an authentication form once my app is loaded. I want the authentication form to be closed if a user is authenticated successfully and to give the option to close app on his...
10
by: Guadala Harry | last post by:
I have a modal dialog that currently does all of the following except item 4. 1. lets users select a graphic from a list of thumbnails (and when selected, displays the full-size image in a...
11
by: Zytan | last post by:
I have created a new form from the main form. When I close the main form with the 'x' close button, its Form.FormClosed event is run, but not the dialog's. Is this normal? It is ok /...
0
by: Moezzie | last post by:
So ive got a bit of a problem here. Ive been searching the net about this for quite some time now but i just cant seem to figure out how to open a dialog that ive made in QtDesigner. Of corse i...
11
by: VK | last post by:
In the continuation of the discussion at "Making Site Opaque -- This Strategy Feasible?" and my comment at http://groups.google.com/group/comp.lang.javascript/msg/b515a4408680e8e2 I have...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.