473,406 Members | 2,273 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,406 software developers and data experts.

{SOLVED} Help with query output

Hello...

I have the following query which gets input from user entered information. When this is executed the results is displayed in a dynaset. What I am trying to figure out is if there is a way to display the results on the same form or a msgbox. Please let me know if you can help.
Thanks..Lonestar

SELECT KenanCrmTable.ComponentIOSC, KenanCrmTable.ComponentDesc, KenanCrmTable.MemberType, KenanCrmTable.PackageType, IOSCfeatureNameTable.RelatedFeatures, IOSCfeatureNameTable.AAISdescription
FROM KenanCrmTable INNER JOIN IOSCfeatureNameTable ON KenanCrmTable.ComponentIOSC=IOSCfeatureNameTable.I OSC
WHERE (((KenanCrmTable.ComponentIOSC) Like forms!frmSearchTable!IoscNum.value));
Nov 9 '06 #1
4 1309
pks00
280 Expert 100+
Well if u create a form based on this query

SELECT KenanCrmTable.ComponentIOSC, KenanCrmTable.ComponentDesc, KenanCrmTable.MemberType, KenanCrmTable.PackageType, IOSCfeatureNameTable.RelatedFeatures, IOSCfeatureNameTable.AAISdescription
FROM KenanCrmTable INNER JOIN IOSCfeatureNameTable ON KenanCrmTable.ComponentIOSC=IOSCfeatureNameTable.I OSC


And u have a textbox where the user enters IoscNum, u can perform a filter or a find
Expand|Select|Wrap|Line Numbers
  1.  
  2. e.g.
  3.  
  4. me.filter = "ComponentIOSC = " & Me.UserEnteredField
  5. me.filteron = true
  6.  
  7. or
  8.  
  9. dim rs as dao.recordset
  10.  
  11. set rs=me.recordsetclone
  12. rs.findfirst "ComponentIOSC = " & Me.UserEnteredField
  13. if rs.nomatch=false then
  14.     me.bookmark=rs.bookmark
  15. endif
  16.  
Hello...

I have the following query which gets input from user entered information. When this is executed the results is displayed in a dynaset. What I am trying to figure out is if there is a way to display the results on the same form or a msgbox. Please let me know if you can help.
Thanks..Lonestar

SELECT KenanCrmTable.ComponentIOSC, KenanCrmTable.ComponentDesc, KenanCrmTable.MemberType, KenanCrmTable.PackageType, IOSCfeatureNameTable.RelatedFeatures, IOSCfeatureNameTable.AAISdescription
FROM KenanCrmTable INNER JOIN IOSCfeatureNameTable ON KenanCrmTable.ComponentIOSC=IOSCfeatureNameTable.I OSC
WHERE (((KenanCrmTable.ComponentIOSC) Like forms!frmSearchTable!IoscNum.value));
Nov 9 '06 #2
Well if u create a form based on this query

SELECT KenanCrmTable.ComponentIOSC, KenanCrmTable.ComponentDesc, KenanCrmTable.MemberType, KenanCrmTable.PackageType, IOSCfeatureNameTable.RelatedFeatures, IOSCfeatureNameTable.AAISdescription
FROM KenanCrmTable INNER JOIN IOSCfeatureNameTable ON KenanCrmTable.ComponentIOSC=IOSCfeatureNameTable.I OSC


And u have a textbox where the user enters IoscNum, u can perform a filter or a find
Expand|Select|Wrap|Line Numbers
  1.  
  2. e.g.
  3.  
  4. me.filter = "ComponentIOSC = " & Me.UserEnteredField
  5. me.filteron = true
  6.  
  7. or
  8.  
  9. dim rs as dao.recordset
  10.  
  11. set rs=me.recordsetclone
  12. rs.findfirst "ComponentIOSC = " & Me.UserEnteredField
  13. if rs.nomatch=false then
  14.     me.bookmark=rs.bookmark
  15. endif
  16.  

I got it to work....well sort of...it keeps on giving me a data type mismatch error! Any sugguestions.....
Nov 9 '06 #3
pks00
280 Expert 100+
If ComponentIOSC is a string field then u need to wrap it with single quotes

eg

rs.findfirst "ComponentIOSC = '" & Me.UserEnteredField & "'"
Nov 10 '06 #4
Thanks! that worked..
Nov 14 '06 #5

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

Similar topics

4
by: Wm | last post by:
I have a query that I expect to return 3 or 4 entries -- but I seem to be getting only the most recent entry, repeated 4 times. What am I doing wrong here? $query="SELECT...
5
by: Clifford W. Racz | last post by:
Has anyone solved the issue of translating lists in Word 2003 (WordML) into xHTML? I have been trying to get the nested table code for my XSLT to work for a while now, with no way to get the...
4
by: Bill Cohagan | last post by:
I'm writing a console app in c# and am encountering a strange problem. I'm trying to use redirection of the standard input stream to read input from a (xml) file. The following code snippet is from...
1
by: Massimiliano Campagnoli | last post by:
Hi All, I know that db2 V7.2 is no more supported and nor OS/2 is supported anymore but I wonder if someone here can give me some help on this. Platform: DB2 V7.2 FixPak 14 OS: OS/2 (actually...
25
by: Wim Cossement | last post by:
Hello, I was wondering if there are a few good pages and/or examples on how to process form data correctly for putting it in a MySQL DB. Since I'm not used to using PHP a lot, I already found...
4
by: henryrhenryr | last post by:
Perhaps this should be in the PHP forum but I'll try here first... I'm trying to search some fields for complete words. The word can be in the middle of a string of text. My solution (perhaps...
2
bugboy
by: bugboy | last post by:
Hi i'm a beginner at php and my simple web query page doesn't work.. i swear i had it working at one point but now i've come back to it it doesn't. • My form works • My DB connection works •...
2
by: pjamrisk | last post by:
Hi, I was wondering if one of the many guru's my help me out. Through several javascript books we have been trying to make an autocomplete feature for our department website for certain fields from...
5
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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
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.