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

right SQL statament

47
Hi:
I have a form that has a subform which display data for a totalize query, in the main form I filter the data displayed by the subform, so far its fine , now I'd like to open the form where the totalize line is based , I wrote a macro that on click over the totalized line opens that form but I cant figure out how the WHERE condition be constructed , I used [Forms]![SubformName]![SubformFieldName], but it doesn't work, then I changed for [Forms]![FormName]![SubformFieldName] but still no working

could somebody help me please

Thanks

Raymundo Walle
May 12 '10 #1
3 1296
bard777
23
@rwalle
Not sure if I totally understand what you are doing, but perhaps this would work:

In your onclick event (Code Builder) -

Expand|Select|Wrap|Line Numbers
  1. DoCmd.OpenForm "totalize_form_name", acNormal, , , acFormEdit, , Me.SubformFieldName
May 12 '10 #2
bard777
23
@bard777
Sorry, I forgot to say that in your form "totalize_form_name" you will need to have a textbox to hold the openargs value you are passing it (the textbox can be not visable if you want).

Let's say the textbox is txt_OAV. In the OnLoad event for the form "totalize_form_name" enter the code below:

Expand|Select|Wrap|Line Numbers
  1. Me.txt_OAV = Me.OpenArgs
Then in the query to gather all your totalized data you can use

Expand|Select|Wrap|Line Numbers
  1. WHERE [totalize_ID] = [Forms]![totalize_form_name]![txt_OAV]
May 12 '10 #3
rwalle
47
Bard:

Thanks for your replay :

actually my doubt was about build the rigth where SQL in order to open the detailed form where the totalized subform is based , browsing the answers I found
http://bytes.com/topic/access/insigh...items-sub-form
and it worked for me

Thanks and Best Regards

Raymundo Walle
May 19 '10 #4

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

Similar topics

8
by: Bo Wisén | last post by:
Hi, A project in VB6 recently worked without any problems but now it's complaining when I try to use 'Right$'. In immediate mode, when I'm typing 'print left$("123456",2)' I get the correct...
22
by: Marek Mand | last post by:
How to create a functional *flexible* UL-menu list <div> <ul> <li><a href=""></li> <li><a href=""></li> <li><a href=""></li> </ul> </div> (working in IE, Mozilla1.6, Opera7 (or maybe even...
2
by: Dr. Richard E. Hawkins | last post by:
I've googled around, and asked everyone I know, but I still can't find any reference to anyone else having faced this particular IE bug with floats. I've put a page at...
1
by: Astra | last post by:
Hi All This has been bugging me for months and I just can't my finger on why it won't work in Safari/FireFox (IE lets me off cos it's nice liek that). In essence, the offending code is as...
22
by: Simon | last post by:
Hi, I have written a function to trim char *, but I have been told that my way could be dangerous and that I should use memmove(...) instead. but I am not sure why my code could be 'dangerous'...
3
by: deanfamily11 | last post by:
Ok, here's another problem I'm having. I've tried several different things, but I just can't get anything to be right justified. Any thoughts? #include <iostream> #include <iomanip>...
19
by: ashkaan57 | last post by:
Hi, I have a page in a right-to-left language and I am trying to make some bulleted lists using <ul>, but it puts the bullets to the left. Is there any way I can set the bullets to be on the...
5
by: tshad | last post by:
I have a datagrid that I cannot get to right justify a money amount (which is just a label). No matter what I do - it still right justifies it. <asp:TemplateColumn Visible="true"...
12
by: Dio1080 | last post by:
Ok, I need help on a for loop nested program using for loops, I'm trying to use a patten that goes like this: 123456 12345 1234 123 12 1 but when I try it, it goes like this: 123456
3
by: happyse27 | last post by:
Hi All, I wanted to align the text box for user registration but the code just wont budge... Kindly advise what is wrong? Cheers... Andrew <HTML>
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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
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...

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.