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

which is the output format of a dlookup?

5
Hi,

I've got this instruction in a column of a query:

DLookUp("[SumaDePUNTOS]","qryPuntospORPescador","APELLIDO='" & [APELLIDO] & "' AND NOMBREPESCADOR ='" & [NOMBREPESCADOR] & "'")

I need to sort out the records of the column in "numerical" ascending order. However, the results of the DLookUp function are converted into text. The records in the field "SumaDePUNTOS" in the query "qryPuntosPorPescador" are "numbers" and I need the DLookUp function to return "numbers"

Is there anything regarding the DLookUp that I'm missing? Is there any way to convert the text into numbers by adding something like Format(DLookUp...)
I don't know how the format function works either.
Thank you very much
Mar 18 '07 #1
3 2884
MMcCarthy
14,534 Expert Mod 8TB
Hi,

I've got this instruction in a column of a query:

DLookUp("[SumaDePUNTOS]","qryPuntospORPescador","APELLIDO='" & [APELLIDO] & "' AND NOMBREPESCADOR ='" & [NOMBREPESCADOR] & "'")

I need to sort out the records of the column in "numerical" ascending order. However, the results of the DLookUp function are converted into text. The records in the field "SumaDePUNTOS" in the query "qryPuntosPorPescador" are "numbers" and I need the DLookUp function to return "numbers"

Is there anything regarding the DLookUp that I'm missing? Is there any way to convert the text into numbers by adding something like Format(DLookUp...)
I don't know how the format function works either.
Thank you very much
Where are you storing the return? In a textbox on a form or a variable in code? In other words where is this code?
Mar 18 '07 #2
ECUweb
5
Hi, thank you for your answer. I haven't come back earlier because I solved the problem with FindFirst in VB. Anyway, I'd like to know the answer to my question. The thing is:
The code is in a query and the result appears in the column when I open the query in spreadsheet view. I also use the results to sort out the records on a report.
Mar 21 '07 #3
MMcCarthy
14,534 Expert Mod 8TB
Hi, thank you for your answer. I haven't come back earlier because I solved the problem with FindFirst in VB. Anyway, I'd like to know the answer to my question. The thing is:
The code is in a query and the result appears in the column when I open the query in spreadsheet view. I also use the results to sort out the records on a report.
Try this ...

Expand|Select|Wrap|Line Numbers
  1. CLng(DLookUp("[SumaDePUNTOS]","qryPuntospORPescador","APELLIDO='" & [APELLIDO] & "' AND NOMBREPESCADOR ='" & [NOMBREPESCADOR] & "'"))
Mar 21 '07 #4

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

Similar topics

2
by: Betrock | last post by:
This is probably very simple, but I just can't see my way thru it..... Short version: keyed values(numeric)in a lookup table are stored in a main table. They are displayed as text values - the...
5
by: Kalvin Schroder | last post by:
I am fairly new to Access, and am trying to put together an invoice form. The main form in called InvoiceDetailFm. Source is the table InvoiceDetail and has invoice number, saleman, and CustID as...
3
by: DFS | last post by:
FYI, Using DLookup("ResultsField","Pass-thru query") consumes 2 SEQUENCE numbers each time it's called. Anyone know why?
11
by: Nick J | last post by:
Hi, I want t display several fields in one label box using the DLookUp function. I have tried using below but all I get is '-1' when I preview the report. Any idea's? =DLookUp("" And...
4
by: MLH | last post by:
I have tried using DLookUp in this manner... If DLookUp("","tblClients","='2021234567'") Then MsgBox "Found it!" End If I am wondering if that is a misuse of the DLookUp command? Type...
2
by: ctyrrell | last post by:
I have read with interest the many discussions of the 3048 Error: Cannot open any more databases. I understand how the number of open Table ID's causes the problem. My question has to do with the...
11
by: MLH | last post by:
DLookup("", "tblPreliminaryVINs", "=Forms!frmVINODO!SerialNum") is giving me a Type Mismatch error. That's confusing to me and I don't know how to circumvent it. The field in...
2
by: Don | last post by:
Can someone help me fix my DLookup problem. I'm far from proficiency with Access. I've been creating databases for several years for work with the help of many of you and trial and error. I have...
9
by: | last post by:
In my database I have a 'control table' in which basic info is stored about the application, for instance the application's path and the name of the company that is using it. In all of the...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.